How to Audit Open Graph Tags with Copilot

Audit OG tags in your IDE with Copilot and ToolRouter. Check social metadata before deploying pages.

Tool
Link Preview icon
Link Preview

Copilot 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
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Link Preview tool:

  1. In Copilot Chat: "Audit the OG tags on this staging URL: [url]"
  2. Copilot returns the metadata audit results
  3. Ask: "Write a test that checks OG tags are all present for any page URL"
  4. 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