How to Audit Open Graph Tags with Copilot
Audit OG tags in your IDE with Copilot and ToolRouter. Check social metadata before deploying pages.
ToolLink PreviewCopilot checks Open Graph configuration as part of your development process — validate pages before deployment, write automated OG tag tests, and fix missing metadata directly in your template files without leaving the editor.
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
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Link Preview tool:
- In Copilot Chat: "Audit the OG tags on this staging URL: [url]"
- Copilot returns the metadata audit results
- Ask: "Write a test that checks OG tags are all present for any page URL"
- Add the OG validation test to your pre-deployment checklist
Example Prompt
Try this with Copilot using the Link Preview tool
Audit OG tags on https://staging.example.com/product and write a Vitest test that validates og:title, og:description, and og:image are all present for any URL.
Tips
- Add OG tag validation to your CI pipeline so missing tags are caught before deployment
- Ask Copilot to write the fix directly in your Next.js or HTML template based on the audit results
- Validate dynamic pages by checking a representative sample URL for each page type