---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/web-scraper/use-cases/map-website-structure/openclaw
---
# How to Map Website Structure with OpenClaw

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.

## Setup

openclaw mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter to OpenClaw: openclaw mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask: "Map the complete site structure of example.com"
3. OpenClaw discovers all URLs and builds the site hierarchy
4. Request: "Export the URL list and hierarchy as JSON"
5. Use the data for migration planning or architecture analysis

## Example Prompt

```
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
