web_extract_contacts
Extract emails, phone numbers, and social media links from web pages to collect contact information from any URL.
Instructions
Extract emails, phone numbers, and social media links from any web page. Costs $0.03 USDC per request via x402 on Base.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to extract contacts from |
Implementation Reference
- src/index.ts:313-316 (handler)The async handler function that calls the web_extract_contacts API.
async ({ url }) => { const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/contacts`, { url }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/index.ts:302-317 (registration)Tool registration for web_extract_contacts including title, description, and input schema.
server.registerTool( "web_extract_contacts", { title: "Extract Contacts from URL", description: `Extract emails, phone numbers, and social media links from any web page. Costs $0.03 USDC per request via x402 on Base.`, inputSchema: { url: z.string().url().describe("URL to extract contacts from"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, }, async ({ url }) => { const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/contacts`, { url }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );