n8n_get_workflow
Retrieve a workflow by ID with selectable detail levels: draft, active, execution stats, topology, or minimal metadata.
Instructions
Get workflow by ID with different detail levels. n8n has a draft/publish model: the workflow body holds the draft (latest edits); use mode='active' to see the published graph that is actually running. Modes: 'full' (draft + metadata), 'details' (full + execution stats), 'active' (published graph only), 'structure' (nodes/connections topology), 'minimal' (id/name/active/tags).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Workflow ID | |
| mode | No | Detail level: full=draft + metadata (activeVersionId pointer kept, heavy activeVersion payload stripped), details=full+execution stats, active=published graph (errors if workflow has no live version), structure=nodes/connections topology, minimal=metadata only | full |