Download a project file
download_fileSaves any Overleaf project file (PDF, image, .bib, .tex) to a local path, creates missing folders, and replaces existing files without changing Overleaf.
Instructions
Saves a copy of one project file of any type (PDF, image, .bib, .tex) to a path on this computer, creating missing local folders and replacing a file already at that path. Changes nothing on Overleaf. Use it for binary files that read_file cannot show as text, or to work on a file with local tools; for the compiled PDF use compile with savePdfTo.
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>",
"localPath": "<localPath>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file inside the project, e.g. "figures/plot.pdf" | |
| project | No | Project name, id or Overleaf URL. May be omitted when exactly one project is pinned. | |
| localPath | Yes | Absolute path on this computer to save to, including the file name |