list_versions
List the version history (git commits) for a Bridge Town model. When path is provided (e.g. model/revenue.py, README.md, data/seed.csv), only commits that touched that file are shown; omit path to list model-wide history. Each version includes the commit SHA, human-readable commit message (derived from the natural-language prompt used to create or update the file), author name, and date.
read-only · idempotent
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
model_name | Annotated[str, Field(description='Name of the Bridge Town model.')] | Yes | — | |
path | Annotated[str, Field(description="Model-relative file path (e.g. 'model/revenue.py'). Omit to operate on the whole model.")] | No | '' | |
branch | Annotated[str, Field(description="Branch to inspect. Defaults to the model's default branch.")] | No | 'main' | |
limit | Annotated[int, Field(description='Maximum number of commits to return. Defaults to 20.')] | No | 20 | |
cursor | Annotated[str, Field(description='Pagination cursor from a previous list_versions response to fetch the next page.')] | No | '' | |
workspace_id | `Annotated[str | None, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]` | No | None |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
model(string)path(string)branch(string)versions(array<object>)count(integer)next_cursor(string)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "list_versions", "arguments": { "model_name": "forecasts", "path": "model/revenue.py", "branch": "main", "limit": 5 }}Response
Section titled “Response”{ "model": "forecasts", "path": "model/revenue.py", "branch": "main", "versions": [ { "sha": "abc1234def5678901234567890abcdef12345678", "short_sha": "abc1234", "author": "alice@example.com", "message": "tweak: bump growth assumption", "date": "2026-04-28T10:00:00+00:00" }, { "sha": "0123456789abcdef0123456789abcdef01234567", "short_sha": "0123456", "author": "bob@example.com", "message": "feat: add revenue model", "date": "2026-04-27T18:00:00+00:00" } ], "count": 2, "next_cursor": ""}- Module:
Versions - Requires authentication via API token or Auth0 JWT.