# Get files

Tool: `veryfront__get_files`

Return the files at the given paths. Requires project.files.read.

## Arguments

| Name                | Type                                             | Required | Description                                                                                 |
| ------------------- | ------------------------------------------------ | -------- | ------------------------------------------------------------------------------------------- |
| `ref`               | string                                           |          | Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main. |
| `paths`             | array of string · min length 1 · max length 1024 | Yes      | Exact file paths to read, at most 50. Results keep this order.                              |
| `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__get_files",
    "arguments": {
      "paths": [
        "string"
      ]
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"path\":\"string\",\"found\":false,\"file\":{\"id\":\"string\",\"version_id\":\"string\",\"path\":\"string\",\"type\":\"page\",\"content\":\"string\",\"size_bytes\":0,\"binary\":{\"content_hash\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"byte_size\":0,\"content_type\":\"x\"},\"checksum\":\"string\",\"updated_at\":\"string\"},\"error\":{\"code\":\"internal\",\"message\":\"string\"}}]}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "path": "string",
          "found": false,
          "file": {
            "id": "string",
            "version_id": "string",
            "path": "string",
            "type": "page",
            "content": "string",
            "size_bytes": 0,
            "binary": {
              "content_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              "byte_size": 0,
              "content_type": "x"
            },
            "checksum": "string",
            "updated_at": "string"
          },
          "error": {
            "code": "internal",
            "message": "string"
          }
        }
      ]
    }
  }
}
```
