Skip to content
Tools / Link Preview / Use Cases / Populate Link Cards and Embeds

Populate Link Cards and Embeds

Fetch metadata from shared URLs to power link card previews in your application or content feed.

Quick answer: Use the Link Preview tool through ToolRouter to populate link cards and embeds directly from Claude, ChatGPT, Microsoft Copilot, and OpenClaw — connect once, then drive it with plain-language prompts. No code required.

Tool
Link Preview icon
Link Preview

Link cards — the rich previews that appear when a URL is shared in a messaging app, a knowledge base, or a social feed — require fetching and parsing metadata from the target URL. Building this as a custom feature means writing an HTTP client, parsing HTML, extracting the right meta tags, and handling edge cases for the thousands of sites users might share.

The preview_url skill does this reliably for any public URL, returning a structured object with all the fields needed to render a link card: title, description, thumbnail image, site name, and URL. No custom parsing required.

Developers building Slack-like messaging apps, teams maintaining curated resource libraries, and product teams adding link sharing to their platform all use this to add rich link previews without building a custom unfurl service.

How to populate link cards and embeds with Claude, ChatGPT, Microsoft Copilot, and OpenClaw

Claude fetches link card metadata and can immediately format it into the structure your application needs. Ask it to return the data as a JSON object matching your schema, or describe the card layout and it formats the output accordingly.

Connect ToolRouter to Claude

1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Let Claude set you up Open Claude

How to populate link cards and embeds with Claude

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

  1. Ask: "Get link card metadata for: [paste URL]"
  2. Claude returns the structured preview data
  3. Ask: "Format this as a JSON object with title, description, image, and url fields"
  4. Use the formatted data to render your link card component

Example prompt for Claude

Try this with Claude using the Link Preview tool
Fetch link preview data for this URL and return it as a JSON object I can use to render a link card: title, description, thumbnail_url, site_name, url — https://example.com/article

Tips for Claude

  • Ask Claude to format the output to match your exact data schema
  • Request that Claude flag when a thumbnail image URL is from a CDN vs an absolute page URL
  • Test with a range of URLs — news sites, GitHub, YouTube — to see how metadata varies

Frequently Asked Questions

How do I populate link cards and embeds with an AI assistant?

Fetch metadata from shared URLs to power link card previews in your application or content feed. Connect the Link Preview tool to Claude, ChatGPT, Microsoft Copilot, and OpenClaw through ToolRouter, then ask the assistant in plain language. For example: Ask: "Get link card metadata for: [paste URL]" Claude returns the structured preview data

Which AI assistants can populate link cards and embeds?

Claude, ChatGPT, Microsoft Copilot, and OpenClaw can all populate link cards and embeds using the Link Preview tool through ToolRouter, with no API keys or coding required.

What does the Link Preview tool do?

Fetch rich metadata from any URL — title, description, image, and Open Graph data.

Related Use Cases

Open Fetch Rich Metadata from URLs

Fetch Rich Metadata from URLs

Pull the title, description, thumbnail image, and Open Graph data from any public URL.

Link Preview icon
Link Preview
4 agent guides
Open Audit Open Graph Tags Across Pages

Audit Open Graph Tags Across Pages

Check whether pages are correctly set up for social sharing by auditing their Open Graph metadata.

Link Preview icon
Link Preview
4 agent guides