Edit a text file
overleaf_edit_fileReplace an exact string in Overleaf LaTeX project files to edit content precisely and directly.
Instructions
Replace an exact string inside a project file.
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": {
"filePath": "<filePath>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "overleaf_edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| newString | Yes | ||
| oldString | Yes | ||
| projectId | No | ||
| replaceAll | No |