Find Webhook
find_webhookFetch the current webhook URL and settings for your pinned WhatsApp instance to verify or troubleshoot message forwarding.
Instructions
Get the current webhook configuration for the pinned WhatsApp instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/find-webhook.ts:5-23 (handler)The 'registerFindWebhook' function registers the 'find_webhook' tool. The handler calls the Evolution API GET /webhook/find/{instanceName} and returns the webhook configuration as JSON.
export function registerFindWebhook(server: McpServer, client: EvolutionClient): void { server.registerTool( "find_webhook", { title: "Find Webhook", description: "Get the current webhook configuration for the pinned WhatsApp instance.", inputSchema: {}, }, async () => { try { const data = await client.get(`/webhook/find/${client.instanceName}`); return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] }; } catch (e) { if (e instanceof McpError) return { isError: true, content: [{ type: "text" as const, text: e.message }] }; throw e; } } ); } - src/tools/find-webhook.ts:5-23 (registration)The tool is registered with the name 'find_webhook' via server.registerTool() in the registerFindWebhook function.
export function registerFindWebhook(server: McpServer, client: EvolutionClient): void { server.registerTool( "find_webhook", { title: "Find Webhook", description: "Get the current webhook configuration for the pinned WhatsApp instance.", inputSchema: {}, }, async () => { try { const data = await client.get(`/webhook/find/${client.instanceName}`); return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] }; } catch (e) { if (e instanceof McpError) return { isError: true, content: [{ type: "text" as const, text: e.message }] }; throw e; } } ); } - src/tools/find-webhook.ts:9-12 (schema)The inputSchema is empty ({}), meaning this tool takes no input parameters.
title: "Find Webhook", description: "Get the current webhook configuration for the pinned WhatsApp instance.", inputSchema: {}, }, - src/tools/index.ts:138-139 (registration)The 'registerFindWebhook' function is called in registerAllTools() to register the tool with the server.
registerFindWebhook(server, client); registerSetWebhook(server, client);