# List file versions

Tool: `veryfront__list_file_versions`

List file versions. Requires project.files.read.

## Arguments

| Name                | Type                      | Required | Description                                                                                    |
| ------------------- | ------------------------- | -------- | ---------------------------------------------------------------------------------------------- |
| `file_path`         | string · min length 1     | Yes      | Project-relative source path, or the file ID.                                                  |
| `ref`               | string                    |          | main or branch:<name-or-id>. Omit for main. Releases and environments have no version history. |
| `cursor`            | string                    |          | Opaque page\_info.next from the previous page.                                                 |
| `limit`             | integer · min 1 · max 100 |          | Versions per page, 1 to 100 (default 20).                                                      |
| `project_reference` | string                    |          | Project ID or slug (defaults to the current project)                                           |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_file_versions",
    "arguments": {
      "file_path": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"binary\":{\"content_hash\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"byte_size\":0,\"content_type\":\"x\"},\"id\":\"string\",\"file_id\":\"string\",\"path\":\"string\",\"type\":\"page\",\"created_at\":\"string\",\"created_by\":\"string\",\"size_bytes\":0}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "binary": {
            "content_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "byte_size": 0,
            "content_type": "x"
          },
          "id": "string",
          "file_id": "string",
          "path": "string",
          "type": "page",
          "created_at": "string",
          "created_by": "string",
          "size_bytes": 0
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
