Get Workflow
get_workflow · Tools · Workflows
Get workflow details by ID
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
detail_level | "overview" | "detailed" | "graph" | "compact" | "full" | No | overview returns graph connectivity inside each selected node in topological order and is the default for inspection. Null or omission means overview. detailed returns raw node configs in the same graph shape and can be large; use only when configuration details are needed. graph/compact and full are legacy aliases. |
node_ids | string[] | No | Optional graph-local node ids to return. Omit or pass [] for all nodes. Use with detail_level=detailed to inspect specific node configs without fetching the whole graph. |
workflow_id | string | Yes | The workflow slug or id ULID to retrieve |
Get Workflow Tool#
Retrieves a workflow's full definition including nodes, edges, and configuration for inspection or analysis.
When to Use#
The AI uses this tool when it needs to understand a workflow's structure, verify configuration, or analyze workflow definitions. This is useful for debugging, generating documentation about workflows, or building meta-workflows that inspect and report on other workflows.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | Yes | Workflow slug or id ULID |
Returns#
| Field | Type | Description |
|---|---|---|
id |
string | Workflow id ULID |
slug |
string | Workflow slug alias |
name |
string | Workflow name |
description |
string | Workflow description |
nodes |
array | Node definitions with type and config |
edges |
array | Connections between nodes |
triggers |
array | Trigger configurations (cron, webhook, manual) |
Example Scenario#
A documentation workflow walks every page of ListWorkflowsTool to find all workflows, then retrieves each with GetWorkflowTool to generate a comprehensive workflow catalog that describes what each workflow does and how it's triggered.
Notes#
- Returns full workflow definition (can be large)
- Includes all node configurations and connections
- Use
ListWorkflowsToolfor discovery, this for full details - Workflow definitions are versioned (returns current version)
- Node IDs in
nodesandedgesare graph-local strings, not entity IDs.