---
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/image-ops/use-cases/generate-thumbnails/copilot
---
# How to Generate Thumbnails with Copilot

Copilot integrates thumbnail generation into your application upload flow from within the IDE. Generate thumbnails and immediately write the upload handler code that creates thumbnails on file submission. Copilot can build the thumbnail display components and lazy-loading logic right alongside the generation workflow.

## Setup

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

## Steps

1. Add ToolRouter to your Copilot MCP configuration
2. In Copilot Chat: "Generate a 200x200 thumbnail from this image"
3. Review the thumbnail output
4. Ask Copilot to write a thumbnail generation script for your upload pipeline
5. Automate thumbnail creation for user-uploaded content

## Example Prompt

```
Generate thumbnails for all images in /uploads and add a hook that creates thumbnails on new uploads.
```

## Tips

- Copilot can build thumbnail generation into your file upload handler
- Script multiple thumbnail sizes for different display contexts
- Automate thumbnail creation as part of your CMS image pipeline
