How to Find 404 Errors with OpenClaw
Find 404 errors across your site with OpenClaw and ToolRouter. Automated broken page detection.
ToolSite CrawlerOpenClaw 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-mcp2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp toolsSteps
Once connected (see setup above), use the Site Crawler tool:
- Ask: "Crawl mysite.com and find all 404 errors"
- OpenClaw lists every 404 with referring pages
- Request redirect suggestions for each broken URL
- 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