workflows-list
Retrieve all available workflows from the Shortcut project management platform to view and manage project processes.
Instructions
List all Shortcut workflows
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/workflows.ts:92-101 (handler)The handler function listWorkflows() that implements the core logic for the "workflows-list" tool. It retrieves all workflows from the Shortcut client, handles empty results, and formats the output using base tool methods.async listWorkflows() { const workflows = await this.client.getWorkflows(); if (!workflows.length) return this.toResult(`No workflows found.`); return this.toResult( `Result (first ${workflows.length} shown of ${workflows.length} total workflows found):`, await this.entitiesWithRelatedEntities(workflows, "workflows"), ); }
- src/tools/workflows.ts:38-42 (registration)Registration of the "workflows-list" tool using server.addToolWithReadAccess, specifying the tool name, description, and linking to the listWorkflows handler.server.addToolWithReadAccess( "workflows-list", "List all Shortcut workflows", async () => await tools.listWorkflows(), );