read_file
Read a file's current content from the Overleaf project before rewriting, ensuring edits reflect the latest human changes.
Instructions
Read one file from the project. Call this before rewriting a file a human may have touched, so your edit is based on current content.
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": {
"projectId": "<projectId>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | e.g. main.tex or sections/intro.tex | |
| projectId | Yes |