flowchart TD diagram. Pipe the diagram string to any Mermaid renderer — GitHub, mermaid.live, or the mermaid CLI — to view the workflow.
Arguments
| Argument | Description |
|---|---|
workflowId | Workflow id, e.g. wf_abc123. Required. |
Output
| Field | Type | Description |
|---|---|---|
format | "mermaid" | Always "mermaid". |
diagram | string | Mermaid flowchart TD source for the workflow. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | workflowId argument is required. |
not_found | 6 | No workflow or snapshot with that id in this workspace. |
auth_forbidden | 3 | The API key lacks permission for this command. |

