get_task_definition
Retrieve task definitions including configuration and metadata from the Conductor workflow engine to understand task structure and requirements.
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:1107-1119 (handler)The handler implementation for the get_task_definition tool. It takes taskName from input arguments, fetches the task definition from the Conductor API endpoint `/metadata/taskdefs/${taskName}`, and returns the response as formatted JSON text.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:518-531 (registration)The tool registration in the tools array, defining the name, description, and input schema (requiring taskName string). This is used for list_tools and validation.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"], }, },