n8n_activate_workflow
Activate a workflow to enable automated execution based on its triggers. Use this tool to start automated processes in n8n.
Instructions
Activate a workflow so it can run automatically based on its triggers.
Args:
id (string): Workflow ID to activate
Returns: The activated workflow.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/workflows.ts:272-280 (handler)Handler function for the n8n_activate_workflow tool.
async (params: z.infer<typeof IdParamSchema>) => { const workflow = await post<N8nWorkflow>(`/workflows/${params.id}/activate`); return { content: [{ type: 'text', text: `✅ Workflow activated!\n\n${formatWorkflow(workflow)}` }], structuredContent: workflow }; } ); - src/tools/workflows.ts:253-280 (registration)Tool registration for n8n_activate_workflow.
server.registerTool( 'n8n_activate_workflow', { title: 'Activate n8n Workflow', description: `Activate a workflow so it can run automatically based on its triggers. Args: - id (string): Workflow ID to activate Returns: The activated workflow.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { const workflow = await post<N8nWorkflow>(`/workflows/${params.id}/activate`); return { content: [{ type: 'text', text: `✅ Workflow activated!\n\n${formatWorkflow(workflow)}` }], structuredContent: workflow }; } );