Retry n8n Execution
n8n_retry_executionRetry 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "n8n_retry_execution"
}
}Input 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 }; } );