Read a file
read_fileRead text files from an Overleaf project, optionally limited to a line range, to inspect LaTeX sources or project content.
Instructions
Read a text file from an Overleaf project, optionally limited to a line range.
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 | Path relative to the project root, e.g. main.tex or sections/intro.tex | |
| project | No | Project ID or Overleaf project URL (or project name in web mode). Defaults to OVERLEAF_PROJECT_ID. | |
| end_line | No | Last line to return (inclusive). | |
| start_line | No | First line to return (1-based). |