Read a project file
read_fileReads live Overleaf project files, including collaborators' unsaved edits, with optional line ranges; images returned as images.
Instructions
Reads a file live from Overleaf (always the latest content, including collaborators' unsaved typing). Optionally a line range. Images (png/jpg/gif/webp) are returned as images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path inside the project, e.g. "main.tex" or "sections/intro.tex" | |
| endLine | No | ||
| project | No | Project name, id or Overleaf URL. May be omitted when exactly one project is pinned. | |
| startLine | No | ||
| lineNumbers | No | Prefix lines with their numbers (do not copy these into edits) |