---
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/site-crawler/use-cases/build-full-site-inventory/copilot
---
# How to Build a Full Site Inventory with Copilot

Copilot maps your entire site from within your IDE, which is especially valuable when planning a redesign or migration. See every URL discovered alongside your routing code and template files, making it easy to verify that your codebase accounts for all existing pages before making structural changes.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. Ask: "Crawl mysite.com and list all pages"
3. Review the page inventory inline
4. Ask Copilot to compare the inventory against your site routes or sitemap file
5. Identify pages that exist in code but are not crawlable, or vice versa

## Example Prompt

```
Crawl mysite.com and compare the results with my Next.js pages directory. Are there routes missing from the crawl?
```

## Tips

- Great for verifying that all your routes are actually crawlable
- Compare against your sitemap.xml to find discrepancies
- Use during site migrations to ensure no pages are lost
