# veryfront__get_file_diff

Return file diff. Requires project.files.read.

Risk: read\_only.

## Arguments

| Name                | Type    | Required | Description                                                                                 |
| ------------------- | ------- | -------- | ------------------------------------------------------------------------------------------- |
| `file_path`         | string  | Yes      | Project-relative source path, or the file ID.                                               |
| `ref`               | string  |          | Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main. |
| `source_ref`        | string  |          | Version ID to compare from. Required except on a branch, which compares against main.       |
| `context_lines`     | integer |          | Context lines around a change, 0 to 10 (default 3).                                         |
| `project_reference` | string  |          | Project ID or slug (defaults to the current project)                                        |

## Call it

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