retry_execution
Retry a failed workflow execution by providing its execution ID.
Instructions
Retry a failed execution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| executionId | Yes | The ID of the execution to retry |
Implementation Reference
- src/handlers.ts:131-134 (handler)Handler case for retry_execution tool - parses executionId from args using ExecutionIdSchema and calls client.retryExecution()
case "retry_execution": { const { executionId } = ExecutionIdSchema.parse(args); return await client.retryExecution(executionId); } - src/handlers.ts:47-49 (schema)Zod schema for input validation - requires a string executionId
const ExecutionIdSchema = z.object({ executionId: z.string(), }); - src/tools.ts:235-248 (registration)Tool registration definition with name 'retry_execution', description, and inputSchema (object with required string executionId)
{ name: "retry_execution", description: "Retry a failed execution", inputSchema: { type: "object", properties: { executionId: { type: "string", description: "The ID of the execution to retry", }, }, required: ["executionId"], }, }, - src/n8n-client.ts:133-136 (helper)Actual HTTP call: POST to /api/v1/executions/{id}/retry to retry a failed execution
async retryExecution(id: string) { const response = await this.client.post(`/api/v1/executions/${id}/retry`); return response.data; }