web_link_preview
Link preview / URL unfurl — Unfurl any public URL into a link-preview card like chat apps show: title, description, site name, preview image (absolute URL, width, height, alt, aspect ratio), favicon, canonical URL, author, published and modified time (ISO), language, theme color, video/audio, Twitter card fields, oEmbed endpoint and card layout. Each field falls back Open Graph > Twitter Card > JSON-LD > HTML (title tag, first h1, first paragraph, first large image) and fieldSources says where each came from; previewScore 0-100 and missingTags list what to fix for good previews. Non-HTML URLs (images, PDFs, files) get a minimal card. Optional: oembed=1 also fetches the page's oEmbed JSON (embed html, thumbnail, author). Private or local hosts are refused. 404 for missing pages (not charged). Price: $0.004 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "web_link_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https://github.com/cloudflare/workers-sdk |