create_task_definition
Create or update task definitions in Netflix Conductor Workflow Engine to manage workflow executions and troubleshooting.
Instructions
Create or update a task definition. If the task already exists, it will be updated.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | Complete task definition as a JSON object |
Implementation Reference
- src/index.ts:1138-1151 (handler)Handler that executes the create_task_definition tool by posting the provided task definition to the Conductor API endpoint '/metadata/taskdefs' and returns a success message.case "create_task_definition": { const { definition } = args as any; await conductorClient.post("/metadata/taskdefs", [definition]); return { content: [ { type: "text", text: `Task definition created/updated successfully.`, }, ], }; }
- src/index.ts:547-561 (schema)Tool schema definition for 'create_task_definition', including the input schema requiring a 'definition' object.{ name: "create_task_definition", description: "Create or update a task definition. If the task already exists, it will be updated.", inputSchema: { type: "object", properties: { definition: { type: "object", description: "Complete task definition as a JSON object", }, }, required: ["definition"], }, },
- src/index.ts:598-602 (registration)Registration of the tools list handler, which includes the 'create_task_definition' tool in the returned tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools, }; });