read_file
Read text files from an attached Overleaf project and optionally select a start and end line range for focused editing or review.
Instructions
Read a text file from the attached project.
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>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the project root, e.g. 'main.tex'. | |
| end_line | No | Last line to return (inclusive). Omit for the end. | |
| start_line | No | First line to return (1-based). Omit for the start. | |
| line_numbers | No | Prefix each line with its number. Leave off when you will copy text into edit_file. |