n8n_activate_workflow
Activate a specific workflow in n8n by providing its ID to enable automated processes and trigger scheduled tasks.
Instructions
Activate a workflow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Workflow ID to activate |
Implementation Reference
- src/index.ts:99-105 (handler)Handler logic for the 'n8n_activate_workflow' tool in the MCP server request handler.
case 'n8n_activate_workflow': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.activateWorkflow(args.id as string); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:509-518 (registration)Registration of the 'n8n_activate_workflow' tool in the ListTools response.
name: 'n8n_activate_workflow', description: 'Activate a workflow', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Workflow ID to activate' }, }, required: ['id'], }, }, - src/n8n-client.ts:76-79 (helper)API client method to perform the HTTP POST request to activate a workflow.
async activateWorkflow(id: string): Promise<any> { const response = await this.client.post(`/workflows/${id}/activate`); return response.data; }