list_workflows
Retrieve and filter workflows in your workspace to view their ID, name, status, and goal. Supports filtering by status and limiting results.
Instructions
List all workflows in the workspace. Returns id, name, status, goal for each.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by status: draft, active, paused | |
| limit | No | Max results (default 50, max 200) |
Implementation Reference
- src/tools/workflows.ts:11-28 (handler)The 'list_workflows' tool implementation. It registers the tool with the MCP server, defines the input schema, and calls the 'listWorkflows' method on the client provided by the clientFactory.
server.tool( 'list_workflows', 'List all workflows in the workspace. Returns id, name, status, goal for each.', { status: z.string().optional().describe('Filter by status: draft, active, paused'), limit: z.number().optional().describe('Max results (default 50, max 200)'), }, async ({ status, limit }, extra) => { const client = clientFactory(extra); const result = await client.listWorkflows({ status, limit }); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } );