Extract Page Metadata
web_extract_metadataExtract metadata from any URL including title, author, description, images, links, and headings using micropayments on Base.
Instructions
Extract title, author, description, images, links, and headings from any URL. Costs $0.02 USDC per request via x402 on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to extract metadata from |
Implementation Reference
- src/index.ts:286-300 (handler)The handler and registration logic for the "web_extract_metadata" tool.
"web_extract_metadata", { title: "Extract Page Metadata", description: `Extract title, author, description, images, links, and headings from any URL. Costs $0.02 USDC per request via x402 on Base.`, inputSchema: { url: z.string().url().describe("URL to extract metadata from"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, }, async ({ url }) => { const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/metadata`, { url }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );