How to Map Website Structure with Copilot

Map website structure in your IDE with Copilot and ToolRouter. Site architecture analysis for developers.

Tool
Web Scraper icon
Web Scraper

Copilot maps website structure from within your IDE, which is valuable when reverse-engineering a site for migration, building a competing product, or understanding a client's current architecture. See the URL structure alongside your routing code for a complete picture of how a site is organized.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Web Scraper tool:

  1. Ask Copilot: "Map the site structure of example.com"
  2. Review the URL hierarchy and page structure in your editor
  3. Ask: "Generate a redirect map from this old structure to our new URL scheme"
  4. Use the map directly in your migration planning

Example Prompt

Try this with Copilot using the Web Scraper tool
Map example.com site structure and generate a redirect map from the old URLs to our new /docs/* URL pattern.

Tips

  • Essential for planning site migrations with zero broken links
  • Copilot can generate nginx or Next.js redirect configs from the site map
  • Compare discovered URLs against your routing config to find gaps