create_workflow_definition
Create or update workflow definitions in Netflix Conductor. Use this tool to define workflows as JSON objects, with options to overwrite existing definitions.
Instructions
Create or update a workflow definition. If the workflow already exists, it will be updated.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | Complete workflow definition as a JSON object | |
| overwrite | No | Overwrite existing definition (default: true) |
Implementation Reference
- src/index.ts:652-671 (handler)Handler for create_workflow_definition tool. Extracts definition and overwrite from args, posts to Conductor /metadata/workflow endpoint with overwrite param, returns success message.case "create_workflow_definition": { const { definition, overwrite = true } = args as any; const response = await conductorClient.post( `/metadata/workflow`, definition, { params: { overwrite }, } ); return { content: [ { type: "text", text: `Workflow definition created/updated successfully.`, }, ], }; }
- src/index.ts:273-290 (schema)Input schema definition for the create_workflow_definition tool, specifying required 'definition' object and optional 'overwrite' boolean.name: "create_workflow_definition", description: "Create or update a workflow definition. If the workflow already exists, it will be updated.", inputSchema: { type: "object", properties: { definition: { type: "object", description: "Complete workflow definition as a JSON object", }, overwrite: { type: "boolean", description: "Overwrite existing definition (default: true)", }, }, required: ["definition"], }, },
- src/index.ts:273-290 (registration)The tool object in the tools array used for listTools response, registering the tool's name, description, and schema.name: "create_workflow_definition", description: "Create or update a workflow definition. If the workflow already exists, it will be updated.", inputSchema: { type: "object", properties: { definition: { type: "object", description: "Complete workflow definition as a JSON object", }, overwrite: { type: "boolean", description: "Overwrite existing definition (default: true)", }, }, required: ["definition"], }, },