list_workflow_definitions
Retrieve metadata for all registered workflows in Conductor. Filter by access type or tags to find specific workflow definitions.
Instructions
List all registered workflow definitions. Returns metadata about all workflows registered in Conductor.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access | No | Filter by access type (READ or CREATE) | |
| tagKey | No | Filter by tag key | |
| tagValue | No | Filter by tag value |
Implementation Reference
- src/index.ts:633-650 (handler)The handler function for the 'list_workflow_definitions' tool. It extracts optional parameters (access, tagKey, tagValue) from the input arguments, makes a GET request to the Conductor API endpoint '/metadata/workflow' with these parameters, and returns the response data as a formatted JSON string in the tool response.case "list_workflow_definitions": { const params: any = {}; if ((args as any).access) params.access = (args as any).access; if ((args as any).tagKey) params.tagKey = (args as any).tagKey; if ((args as any).tagValue) params.tagValue = (args as any).tagValue; const response = await conductorClient.get("/metadata/workflow", { params }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:253-270 (schema)The input schema for the 'list_workflow_definitions' tool, defining optional properties for filtering workflow definitions by access type, tag key, and tag value.inputSchema: { type: "object", properties: { access: { type: "string", description: "Filter by access type (READ or CREATE)", enum: ["READ", "CREATE"], }, tagKey: { type: "string", description: "Filter by tag key", }, tagValue: { type: "string", description: "Filter by tag value", }, }, },
- src/index.ts:249-271 (registration)The tool registration object added to the 'tools' array, which is returned by the ListToolsRequestSchema handler. This defines the name, description, and input schema for the tool.{ name: "list_workflow_definitions", description: "List all registered workflow definitions. Returns metadata about all workflows registered in Conductor.", inputSchema: { type: "object", properties: { access: { type: "string", description: "Filter by access type (READ or CREATE)", enum: ["READ", "CREATE"], }, tagKey: { type: "string", description: "Filter by tag key", }, tagValue: { type: "string", description: "Filter by tag value", }, }, }, },