get_workflow_definition
Retrieve complete workflow definitions including tasks and configuration from the Conductor workflow engine by specifying workflow name and optional version.
Instructions
Get the definition of a workflow by name and version. Returns the complete workflow definition including all tasks and configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowName | Yes | Name of the workflow | |
| version | No | Version of the workflow (optional, defaults to latest) |
Implementation Reference
- src/index.ts:615-631 (handler)Handler implementation for the get_workflow_definition tool. Fetches the workflow definition from the Conductor server using the provided workflow name and optional version, then formats and returns the response as JSON text.case "get_workflow_definition": { const { workflowName, version } = args as any; const url = version ? `/metadata/workflow/${workflowName}/${version}` : `/metadata/workflow/${workflowName}`; const response = await conductorClient.get(url); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:231-248 (registration)Tool registration in the tools array, including name, description, and input schema for get_workflow_definition.name: "get_workflow_definition", description: "Get the definition of a workflow by name and version. Returns the complete workflow definition including all tasks and configuration.", inputSchema: { type: "object", properties: { workflowName: { type: "string", description: "Name of the workflow", }, version: { type: "number", description: "Version of the workflow (optional, defaults to latest)", }, }, required: ["workflowName"], }, },
- src/index.ts:234-247 (schema)Input schema definition for the get_workflow_definition tool.inputSchema: { type: "object", properties: { workflowName: { type: "string", description: "Name of the workflow", }, version: { type: "number", description: "Version of the workflow (optional, defaults to latest)", }, }, required: ["workflowName"], },