web_extract_compare
Analyze and compare content from two web pages using AI to identify similarities and differences.
Instructions
Compare content of two web pages with AI analysis of similarities and differences. Costs $0.08 USDC per request via x402 on Base.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url1 | Yes | First URL to compare | |
| url2 | Yes | Second URL to compare |
Implementation Reference
- src/index.ts:399-402 (handler)The handler function for 'web_extract_compare' that calls the extract compare API.
async ({ url1, url2 }) => { const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/compare`, { url1, url2 }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/index.ts:387-403 (registration)Registration of the 'web_extract_compare' tool, including its schema and description.
server.registerTool( "web_extract_compare", { title: "Compare Two Pages", description: `Compare content of two web pages with AI analysis of similarities and differences. Costs $0.08 USDC per request via x402 on Base.`, inputSchema: { url1: z.string().url().describe("First URL to compare"), url2: z.string().url().describe("Second URL to compare"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, }, async ({ url1, url2 }) => { const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/compare`, { url1, url2 }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );