How to Map Website Structure with OpenClaw

Use OpenClaw and ToolRouter to map website structure. Complete site architecture discovery and URL mapping.

Tool
Web Scraper icon
Web Scraper

OpenClaw maps website structure across entire domains in one automated pass, producing a structured URL tree with depth levels, page types, and navigation relationships. The machine-readable output feeds into migration planning tools, sitemap generators, or architecture analysis scripts for sites with complex information hierarchies.

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 Web Scraper tool:

  1. Ask: "Map the complete site structure of example.com"
  2. OpenClaw discovers all URLs and builds the site hierarchy
  3. Request: "Export the URL list and hierarchy as JSON"
  4. Use the data for migration planning or architecture analysis

Example Prompt

Try this with OpenClaw using the Web Scraper tool
Map the full site structure of example.com. Export all discovered URLs with their depth level as JSON.

Tips

  • OpenClaw can map large sites with thousands of pages efficiently
  • Ask for internal linking analysis to identify poorly connected pages
  • Compare site maps before and after redesigns to verify completeness