apply_edits
Apply multiple find-and-replace edits to one Overleaf file as a single change; all edits succeed or none are applied.
Instructions
Apply several find/replace edits to one file as a single Overleaf change.
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>",
"edits": "<edits>"
},
"name": "apply_edits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to edit, relative to the project root. | |
| edits | Yes | Edits applied in order; each sees the result of the previous one. All succeed or none are applied. | |
| message | No | Commit message shown in Overleaf's history. |