---
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/diagram-generator/use-cases/create-architecture-diagrams/copilot
---
# How to Create Architecture Diagrams with Copilot

Copilot generates architecture diagrams directly in your project context. Describe your system or let Copilot infer components from your codebase structure, then save diagrams alongside your code. Perfect for keeping README architecture diagrams in sync with actual project structure.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Create an architecture diagram for this project" and describe the system
3. Copilot generates the diagram based on your description
4. Ask: "Save the diagram to the docs/ folder in my project"

## Example Prompt

```
Generate an architecture diagram for this monorepo. Show the shared packages, the API service, the worker service, and the web frontend with their dependencies.
```

## Tips

- Copilot can read your project structure and infer architecture components automatically
- Great for adding architecture diagrams to README files and project documentation
