meta_get_webhook_subscriptions
List active webhook subscriptions for Meta apps to monitor API events and manage notifications.
Instructions
List current webhook subscriptions for the Meta App.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/meta/auth.ts:99-112 (handler)The implementation of the meta_get_webhook_subscriptions tool, which calls the Meta API to list current subscriptions.
// ─── meta_get_webhook_subscriptions ────────────────────────── server.tool( "meta_get_webhook_subscriptions", "List current webhook subscriptions for the Meta App.", {}, async () => { try { const { data, rateLimit } = await client.meta("GET", `/app/subscriptions`); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Get webhooks failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );