upload_file
Upload a file from the local machine to a specified Synology NAS folder; optionally create missing folders and replace an existing file only when overwrite is enabled.
Instructions
Upload one file from this machine (where this server runs) to a NAS folder; a local folder can't be uploaded. An existing NAS file of the same name is not replaced unless overwrite is true.
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>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Name for the file on the NAS, not a path (default: the local file's name); no whitespace at its ends, no invisible character where Unicode doesn't use one, no control or direction-changing characters, and not `#recycle` at a shared or home folder's top. | |
| overwrite | No | Replace a NAS file of the same name (default false: the call fails and the NAS file is kept). | |
| local_path | Yes | The file on this machine, inside one of the allowed local folders (/root/Downloads), or below it. | |
| dest_folder | No | NAS folder to upload into (`/video/Uploads`). Optional when a default upload folder is configured. | |
| create_parents | No | Create `dest_folder` and any missing folders above it (default true); with `false`, `dest_folder` must already exist. |