How to Find 404 Errors with OpenClaw

Find 404 errors across your site with OpenClaw and ToolRouter. Automated broken page detection.

Tool
Site Crawler icon
Site Crawler

OpenClaw crawls your site for 404 errors and outputs a structured report including the broken URL, referring pages, and status codes. The machine-readable format feeds directly into automated redirect generation scripts or can be imported into project management tools for systematic fix tracking.

Connect ToolRouter to OpenClaw

1Install the CLI
npm install -g toolrouter-mcp
2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp tools

Steps

Once connected (see setup above), use the Site Crawler tool:

  1. Ask: "Crawl mysite.com and find all 404 errors"
  2. OpenClaw lists every 404 with referring pages
  3. Request redirect suggestions for each broken URL
  4. Fix the issues and re-crawl to confirm resolution

Example Prompt

Try this with OpenClaw using the Site Crawler tool
Crawl mysite.com for 404 errors. Show me every broken page and which pages link to it.

Tips

  • Run monthly to catch 404s before they accumulate
  • Prioritize 404s by number of inbound internal links
  • Combine with a full site inventory for comprehensive site health monitoring