upload_file
Copies a local file such as a figure, dataset, or .bib into the attached Overleaf project and pushes it, so you can add assets without manual uploads.
Instructions
Copy a file from this computer (figures, data, .bib) into the attached project and push it.
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": {
"local_path": "<local_path>",
"path": "<path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination path in the project, e.g. 'figures/results.png'. | |
| message | No | Commit message shown in Overleaf's history. | |
| local_path | Yes | Absolute path of a file on this computer (e.g. a figure PNG or PDF). |