overleaf_read_file
Reads live content from a specified Overleaf project file, with optional line ranges and numbering, so you can inspect exact document sections before editing.
Instructions
Read a text document's live 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": {
"project": "<project>",
"path": "<path>"
},
"name": "overleaf_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the project, e.g. 'main.tex' or 'chapters/intro.tex'. | |
| project | Yes | Project id, Overleaf project URL, or exact project name. | |
| end_line | No | Last line to return (inclusive). | |
| start_line | No | First line to return (1-based). | |
| line_numbers | No | Prefix each line with its number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |