# List pending file drafts

Tool: `veryfront__list_project_file_drafts`

List file drafts. Requires project.files.read.

## Arguments

| Name                | Type                  | Required | Description                                                                                                                                                                                                   |
| ------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string                |          | Project whose pending drafts are selected. Returns one latest update per canonically visible source file; restricted server-function drafts are omitted. Project ID or slug; defaults to the current project. |
| `branch_reference`  | string · min length 1 |          | Branch name or UUID. Omit for main; a missing selection is an error.                                                                                                                                          |
| `entity_type`       | string                |          | Filter by the actual source-file type. One of `page`, `component`, `function`, `virtual_file`.                                                                                                                |

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

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"drafts\":[{\"file_id\":\"00000000-0000-0000-0000-000000000000\",\"entity_type\":\"page\",\"version\":1,\"updated_at\":\"string\",\"body_snapshot\":\"string\"}]}"
      }
    ],
    "structuredContent": {
      "drafts": [
        {
          "file_id": "00000000-0000-0000-0000-000000000000",
          "entity_type": "page",
          "version": 1,
          "updated_at": "string",
          "body_snapshot": "string"
        }
      ]
    }
  }
}
```
