# List Workflow Versions Tool

`list_workflow_versions` lists a workflow's versions, newest first, with which one is current and
which one is pinned.

## When to Use

The agent uses it to find a version to restore with `restore_workflow_version` or to pin with
`pin_workflow_version`, or to see what changed recently: a version made on purpose, with Create
Version in the editor or with `push_workflow_graph`, often has a name saying what changed.

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow slug or id ULID |

## Returns

| Field | Type | Description |
|-------|------|-------------|
| `versions` | array | Each version, newest first: `version_id`, `created_at` (RFC 3339), `name` (`null` when unnamed), `is_current` and `is_pinned` |
| `count` | integer | How many versions are listed |
| `current_version_id` | string | The version on the canvas, which manual runs use |
| `pinned_version_id` | string or null | The pinned version, which schedules, webhooks and connected services run |
| `is_pinned` | boolean | Whether a version is pinned |

## Example Scenario

```json
{ "workflow_id": "invoice-intake" }
```

returns, among others:

```json
{ "version_id": "01M7KD3Q8V6M3K9T1R5X7B0N4E", "created_at": "2026-11-17T09:20:02Z", "name": "Retry failed Gmail sends", "is_current": true, "is_pinned": false }
{ "version_id": "01M7HZ1C4T0B6W8D2N5Q9R3K7F", "created_at": "2026-11-14T16:41:37Z", "name": null, "is_current": false, "is_pinned": true }
```

A user asks for the workflow as it was on 14 November; the agent restores `01M7HZ1C4T0B6W8D2N5Q9R3K7F`.

## Notes

- A name is optional. A version without one is known by the date of its `created_at`; the editor's Versions tab shows that date in the viewer's local time (for example 2026-11-14). Several versions can share a date, and `version_id` tells them apart
- Saves and agent edits within 30 minutes of each other fold into one version. A version made with Create Version or a push is kept as made, and the next change starts a new version
- Risk: read
