get_task_definition
Retrieve task definitions including configuration and metadata from Netflix Conductor to understand task structure and troubleshoot workflows.
Instructions
Get the definition of a task by name. Returns the task definition including configuration and metadata.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskName | Yes | Name of the task |
Implementation Reference
- src/index.ts:724-736 (handler)The handler for the 'get_task_definition' tool. Extracts taskName from input arguments, fetches the task definition from the Conductor API at `/metadata/taskdefs/${taskName}`, and returns the JSON response formatted as text content.case "get_task_definition": { const { taskName } = args as any; const response = await conductorClient.get(`/metadata/taskdefs/${taskName}`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:360-369 (schema)Input schema for the 'get_task_definition' tool, defining a required 'taskName' string parameter.inputSchema: { type: "object", properties: { taskName: { type: "string", description: "Name of the task", }, }, required: ["taskName"], },
- src/index.ts:356-370 (registration)Registration of the 'get_task_definition' tool in the tools array, including name, description, and input schema. This tool is listed via the ListToolsRequestHandler.{ name: "get_task_definition", description: "Get the definition of a task by name. Returns the task definition including configuration and metadata.", inputSchema: { type: "object", properties: { taskName: { type: "string", description: "Name of the task", }, }, required: ["taskName"], }, },