n8n_retry_execution
Retry failed n8n workflow executions by providing the execution ID to create a new execution attempt.
Instructions
Retry a failed execution.
Args:
id (string): Execution ID to retry
Returns: The new execution created from the retry.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/executions.ts:262-269 (handler)The handler function that executes the retry logic by calling the n8n API.
async (params: z.infer<typeof IdParamSchema>) => { const execution = await post<N8nExecution>(`/executions/${params.id}/retry`); return { content: [{ type: 'text', text: `🔄 Execution retry started.\n\n${formatExecution(execution)}` }], structuredContent: execution }; } - src/tools/executions.ts:243-270 (registration)Registration of the n8n_retry_execution tool.
server.registerTool( 'n8n_retry_execution', { title: 'Retry n8n Execution', description: `Retry a failed execution. Args: - id (string): Execution ID to retry Returns: The new execution created from the retry.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { const execution = await post<N8nExecution>(`/executions/${params.id}/retry`); return { content: [{ type: 'text', text: `🔄 Execution retry started.\n\n${formatExecution(execution)}` }], structuredContent: execution }; } );