---
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/seo/use-cases/find-broken-internal-links/copilot
---
# How to Find Broken Internal Links with Copilot

Copilot detects broken internal links and lets you fix them without leaving your codebase. See which files contain dead links, then update the href attributes or routing configuration directly in your editor. This is especially efficient for developers working with static site generators or component-based architectures.

## Setup

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

## Steps

1. Add ToolRouter to Copilot config
2. Ask: "Find broken internal links on mysite.com"
3. Review the report inline
4. Ask Copilot to generate redirect rules or fix link references in code
5. Verify fixes by re-scanning

## Example Prompt

```
Find broken links on mysite.com and generate Next.js redirect rules to fix them.
```

## Tips

- Copilot can generate redirect config for your specific framework
- Search your codebase for hardcoded broken URLs and fix them
- Run as part of your pre-deploy checks
