# veryfront__update_project_file_draft

Update file draft. Requires project.files.write.

Risk: mutating.

## Arguments

| Name                     | Type   | Required | Description                                                                                                                                                              |
| ------------------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference`      | string |          | Project ID or slug; defaults to the current project.                                                                                                                     |
| `branch_reference`       | string |          | Branch name or UUID. Omit for main; a missing selection is an error.                                                                                                     |
| `path`                   | string | Yes      | Source-file path or UUID in the selected project/branch.                                                                                                                 |
| `content`                | string | Yes      | Full pending file body. An empty string is valid.                                                                                                                        |
| `expected_draft_version` |        |          | Expected current draft sequence, not a committed version ID. 0 requires no prior draft; a stale value returns 409. Omit/null for an unconditional full-body replacement. |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_project_file_draft",
    "arguments": {
      "path": "<path>",
      "content": "<content>"
    }
  }
}
```
