Upload a local file
upload_fileTransfers a local file into an Overleaf project, replacing any existing file at the same path.
Instructions
Uploads a file from this computer (e.g. a generated figure or .bib) into a project, replacing any file with the same path. For text you already have, write_file is simpler; download_file goes the other way.
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": {
"localPath": "<localPath>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Destination path in the project (default: the file name in the root folder) | |
| project | No | Project name, id or Overleaf URL. May be omitted when exactly one project is pinned. | |
| localPath | Yes | Absolute path of the file on this computer |