# veryfront__list_files

List the files. Requires project.files.read.

Risk: read\_only.

## Arguments

| Name                | Type    | Required | Description                                                                                                                                               |
| ------------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string  |          | Project ID or slug                                                                                                                                        |
| `ref`               | string  |          | Content selector: main, branch:<name-or-id>, release:<version>, or env:<name>. Omit for main.                                                             |
| `branch`            | string  |          | Branch name or ID; alias for ref=branch:<value>.                                                                                                          |
| `branch_id`         | string  |          | Legacy branch name or ID alias. Conflicting selectors are rejected.                                                                                       |
| `pattern`           | string  |          | File pattern filter (e.g., *.tsx, pages/*)                                                                                                                |
| `cursor`            | string  |          | Opaque page\_info.next cursor from the preceding page. Returns a validation error if its file was deleted, renamed, or excluded from the current results. |
| `limit`             | integer |          | Max files to return (default: 100, max: 100)                                                                                                              |
| `sort_by`           | string  |          | Sort by path or last update time (default updated\_at).                                                                                                   |
| `sort_order`        | string  |          | Sort direction (default desc). Tied update times break by path ascending.                                                                                 |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_files",
    "arguments": {}
  }
}
```
