overleaf_read_file
Reads LaTeX or text files from an Overleaf project by project ID, URL, or title; optionally saves raw binary content to a local path.
Instructions
Read a text/LaTeX file (.tex, .bib, .sty, .cls) from Overleaf or download a binary file locally.
Args: project: Overleaf project ID, project URL, or exact project title. remote_path: Path inside the Overleaf project (e.g. 'main.tex' or 'sections/intro.tex'). save_to_path: Optional local file path to save raw bytes (required for binary files like PDFs/images).
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>",
"remote_path": "<remote_path>"
},
"name": "overleaf_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| remote_path | Yes | ||
| save_to_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |