get_workflow_definition
Retrieve complete workflow definitions including tasks and configuration from the Conductor workflow engine by specifying 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:998-1014 (handler)Handler for get_workflow_definition tool: extracts workflowName and optional version from arguments, constructs the appropriate Conductor API endpoint, fetches the workflow definition, and returns it as formatted JSON.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:392-409 (schema)Tool metadata and input schema definition for get_workflow_definition, specifying required workflowName and optional version parameters.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:598-602 (registration)Registration of all tools including get_workflow_definition via the list_tools handler that returns the complete tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools, }; });