overleaf_push_file
Upload or overwrite a file in an Overleaf project. Automatically creates any missing folders in the specified remote path.
Instructions
Upload or overwrite a single file in an Overleaf project.
Creates any missing remote folders in remote_path. Joins the realtime channel to resolve folder ids, so this is slower than overleaf_pull.
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>",
"local_path": "<local_path>"
},
"name": "overleaf_push_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Overleaf project id (24-char hex) or exact project name | |
| local_path | Yes | Local file to upload | |
| remote_path | No | Path within the Overleaf project, e.g. 'sections/intro.tex'. Defaults to the local file's name, placed at the project root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||