# 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 `ListWorkflowsTool` for discovery, this for full details
- Workflow definitions are versioned (returns current version)
- Node IDs in `nodes` and `edges` are graph-local strings, not entity IDs.
