# List release files

Tool: `veryfront__list_release_files`

List release files. Requires project.read.

## Arguments

| Name                       | Type                                    | Required | Description                                                                                                                                                                            |
| -------------------------- | --------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`        | string                                  |          | Project ID or slug                                                                                                                                                                     |
| `release_reference`        | string · min length 1                   | Yes      | Release ID, `latest`, or a version specifier such as "1.2.3" or "1.2".                                                                                                                 |
| `pattern`                  | string · max length 1024                |          | Provide the pattern.                                                                                                                                                                   |
| `cursor`                   | string                                  |          | Opaque cursor pointing at the next page. Omit it to read the first page.                                                                                                               |
| `limit`                    | integer · min 1 · max 100 · default 100 |          | Maximum number of results to return.                                                                                                                                                   |
| `sort_by`                  | string · default path                   |          | Sort by path or last update time (default path). One of `path`, `updated_at`.                                                                                                          |
| `sort_order`               | string · default desc                   |          | Provide the sort order. One of `asc`, `desc`.                                                                                                                                          |
| `include_server_functions` | boolean                                 |          | Set to false to read server-function source only as an editor. Omit to use the rule every MCP file read uses, which lets a project-scoped service token with file read access read it. |
| `fields`                   | string                                  |          | Response projection, for example (id,path,size). Accepted as on REST; the structured output keeps every required field.                                                                |

## 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_release_files",
    "arguments": {
      "release_reference": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"string\",\"version_id\":\"string\",\"path\":\"string\",\"content\":\"string\",\"binary\":{\"content_hash\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"byte_size\":0,\"content_type\":\"x\"},\"type\":\"page\",\"size\":0,\"updated_at\":\"string\",\"_links\":{}}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"},\"release_id\":\"string\",\"release_version\":\"string\",\"_links\":{}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "string",
          "version_id": "string",
          "path": "string",
          "content": "string",
          "binary": {
            "content_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "byte_size": 0,
            "content_type": "x"
          },
          "type": "page",
          "size": 0,
          "updated_at": "string",
          "_links": {}
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      },
      "release_id": "string",
      "release_version": "string",
      "_links": {}
    }
  }
}
```
