Diff between versions
history_diffCompare a single Overleaf file between two saved versions to review what a collaborator changed; read-only and binary files return no text diff.
Instructions
Unified diff of one file between two history versions (from the history tool's vFrom→vTo numbers), e.g. to review what a collaborator changed. Read-only; binary files have no text diff.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"fromVersion": "<fromVersion>",
"toVersion": "<toVersion>"
},
"name": "history_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file inside the project, e.g. "main.tex" | |
| project | No | Project name, id or Overleaf URL. May be omitted when exactly one project is pinned. | |
| toVersion | Yes | Newer version number, from history | |
| fromVersion | Yes | Older version number, from history |