overleaf_push_dir
Upload only locally changed or new files from a directory to an Overleaf project, preserving remote files that were locally removed.
Instructions
Push every locally-changed file under local_dir into an Overleaf project.
Diffs local files against the current remote content (byte-for-byte) and uploads only what differs or is new locally. Does not delete remote files that were removed locally — use overleaf_delete_file for that.
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_dir": "<local_dir>"
},
"name": "overleaf_push_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, only report which files would change | |
| project | Yes | Overleaf project id (24-char hex) or exact project name | |
| local_dir | Yes | Local directory to sync into the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||