---
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/validate-schema-markup/copilot
---
# How to Validate Schema Markup with Copilot

Copilot validates schema markup right in your JSON-LD or HTML files. See structured data errors highlighted inline and fix them in the same editing session. Developers embedding schema markup in templates, React components, or server-side rendered pages get immediate feedback without switching to Google's structured data testing tool.

## Setup

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

## Steps

1. Add ToolRouter to Copilot config
2. Ask: "Validate schema on mysite.com/page"
3. Review validation errors
4. Ask Copilot to generate or fix JSON-LD in your components
5. Re-validate after changes

## Example Prompt

```
Check schema on mysite.com/product and generate a JsonLd component for my Next.js page.
```

## Tips

- Copilot can add schema to your page components directly
- Use for creating reusable schema generation utilities
- Validate both client-rendered and server-rendered schema
