n8n_get_active_webhooks
Retrieve all active webhook endpoints and their linked workflows from an n8n automation server to monitor and manage incoming data triggers.
Instructions
Get a list of all active webhooks in the n8n instance.
Returns: List of active webhooks with their paths and associated workflows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/audit-utils.ts:164-179 (handler)The handler function for 'n8n_get_active_webhooks' that fetches active webhooks from the n8n API.
async () => { const webhooks = await get<Array<{ webhookPath: string; method: string; workflowId: string; node: string }>>('/active-webhooks'); const formatted = webhooks.map(wh => `- **${wh.method}** \`${wh.webhookPath}\`\n Workflow: ${wh.workflowId}, Node: ${wh.node}` ).join('\n\n'); const text = webhooks.length > 0 ? `**Active Webhooks (${webhooks.length})**\n\n${formatted}` : 'No active webhooks found.'; return { content: [{ type: 'text', text }], structuredContent: { count: webhooks.length, webhooks } }; } - src/tools/audit-utils.ts:148-163 (registration)Registration of the 'n8n_get_active_webhooks' tool.
server.registerTool( 'n8n_get_active_webhooks', { title: 'Get Active Webhooks', description: `Get a list of all active webhooks in the n8n instance. Returns: List of active webhooks with their paths and associated workflows.`, inputSchema: EmptySchema, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },