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.
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). |