web_extract_structured
Extract structured data including text, tables, JSON-LD, and metadata from any URL. Uses USDC micropayments on Base network for processing.
Instructions
Full structured extraction: text, tables, JSON-LD, metadata from any URL. Costs $0.05 USDC per request via x402 on Base.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to extract structured data from |
Implementation Reference
- src/index.ts:347-350 (handler)The handler function for web_extract_structured which calls the structured extraction API.
async ({ url }) => { const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/structured`, { url }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/index.ts:336-346 (registration)Registration of the web_extract_structured tool with its schema and description.
server.registerTool( "web_extract_structured", { title: "Extract Structured Data", description: `Full structured extraction: text, tables, JSON-LD, metadata from any URL. Costs $0.05 USDC per request via x402 on Base.`, inputSchema: { url: z.string().url().describe("URL to extract structured data from"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, },