n8n_stop_execution
Stop a running workflow execution in n8n by providing its unique ID to halt processing and manage automation tasks.
Instructions
Stop a running execution.
Args:
id (string): Execution ID to stop
Returns: The stopped execution details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/executions.ts:232-240 (handler)The handler function for the n8n_stop_execution tool, which calls the API endpoint to stop the specified execution.
async (params: z.infer<typeof IdParamSchema>) => { const execution = await post<N8nExecution>(`/executions/${params.id}/stop`); return { content: [{ type: 'text', text: `🛑 Execution stopped.\n\n${formatExecution(execution)}` }], structuredContent: execution }; } ); - src/tools/executions.ts:212-240 (registration)Registration block for the n8n_stop_execution tool.
// ============ Stop Execution ============ server.registerTool( 'n8n_stop_execution', { title: 'Stop n8n Execution', description: `Stop a running execution. Args: - id (string): Execution ID to stop Returns: The stopped execution details.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { const execution = await post<N8nExecution>(`/executions/${params.id}/stop`); return { content: [{ type: 'text', text: `🛑 Execution stopped.\n\n${formatExecution(execution)}` }], structuredContent: execution }; } );