restart_workflow
Restart a workflow execution from the beginning using the same input parameters. This creates a new execution for troubleshooting or re-running processes.
Instructions
Restart a workflow execution from the beginning. This creates a new execution with the same input.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow execution ID to restart | |
| useLatestDefinition | No | Use the latest workflow definition (default: false) |
Implementation Reference
- src/index.ts:556-574 (handler)Handler that executes the restart_workflow tool by making a POST request to Conductor's /workflow/{workflowId}/restart endpoint with optional useLatestDefinitions parameter, returning the new workflow ID.case "restart_workflow": { const { workflowId, useLatestDefinition = false } = args as any; const response = await conductorClient.post( `/workflow/${workflowId}/restart`, null, { params: { useLatestDefinitions: useLatestDefinition }, } ); return { content: [ { type: "text", text: `Workflow restarted successfully. New Workflow ID: ${response.data}`, }, ], }; }
- src/index.ts:166-183 (schema)Tool definition including schema for restart_workflow: requires workflowId (string), optional useLatestDefinition (boolean). Used in tools list for MCP registration.name: "restart_workflow", description: "Restart a workflow execution from the beginning. This creates a new execution with the same input.", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "The workflow execution ID to restart", }, useLatestDefinition: { type: "boolean", description: "Use the latest workflow definition (default: false)", }, }, required: ["workflowId"], }, },
- build/index.js:505-517 (handler)Compiled handler for restart_workflow tool (identical logic to source).case "restart_workflow": { const { workflowId, useLatestDefinition = false } = args; const response = await conductorClient.post(`/workflow/${workflowId}/restart`, null, { params: { useLatestDefinitions: useLatestDefinition }, }); return { content: [ { type: "text", text: `Workflow restarted successfully. New Workflow ID: ${response.data}`, }, ], };
- build/index.js:146-162 (schema)Compiled tool schema for restart_workflow (identical to source).name: "restart_workflow", description: "Restart a workflow execution from the beginning. This creates a new execution with the same input.", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "The workflow execution ID to restart", }, useLatestDefinition: { type: "boolean", description: "Use the latest workflow definition (default: false)", }, }, required: ["workflowId"], }, },