restart_workflow
Restart a workflow execution from the beginning using the same input parameters. This creates a new execution, optionally with the latest workflow definition.
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:939-957 (handler)Handler for the 'restart_workflow' tool. Makes a POST request to Conductor's /workflow/{workflowId}/restart endpoint with optional useLatestDefinitions parameter and returns 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:327-344 (schema)Input schema definition for the 'restart_workflow' tool, specifying required workflowId and optional useLatestDefinition.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"], }, },
- src/index.ts:598-602 (registration)Registration of all tools including 'restart_workflow' via the ListToolsRequestHandler which returns the tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools, }; });