n8n_deactivate_workflow
Deactivate a specific workflow in n8n by providing its ID to pause automation processes.
Instructions
Deactivate a workflow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Workflow ID to deactivate |
Implementation Reference
- src/index.ts:107-113 (handler)The handler implementation for n8n_deactivate_workflow, which calls n8nClient.deactivateWorkflow.
case 'n8n_deactivate_workflow': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.deactivateWorkflow(args.id as string); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:520-529 (registration)The registration of n8n_deactivate_workflow in the MCP tool list.
name: 'n8n_deactivate_workflow', description: 'Deactivate a workflow', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Workflow ID to deactivate' }, }, required: ['id'], }, },