edit
Replaces an exact text snippet in an Overleaf project, then compiles the document. Reverts the change if compilation fails, ensuring the project remains valid.
Instructions
Replace an exact snippet, then compile and push. old must appear exactly
once. Reverts if the result does not compile.
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>",
"old": "<old>",
"new": "<new>",
"message": "<message>"
},
"name": "edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | Yes | ||
| message | Yes | ||
| project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |