copy_files
Copies files or folders into an existing destination folder while keeping the sources in place; same-name items are skipped and listed unless overwrite is enabled.
Instructions
Copy files or folders into a destination folder; a folder is copied with everything in it, and the sources stay in place. To move instead, use move_files. dest_folder must already exist; it isn't created. With overwrite=false (default), items whose name is already at the destination are skipped and listed, and the rest are copied. With overwrite=true, two sources that would replace each other are refused, and a replaced file may not be in the recycle bin. If any source is missing, nothing is copied. A long copy keeps running on the NAS and returns a handle for file_task. While this user's running task is landing the same name there, the call is refused if either one replaces. That can miss another account's task or a start at the same moment from another server process, and DSM's tasks if its task list fails; overwrite=false never replaces.
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": {
"paths": "<paths>",
"dest_folder": "<dest_folder>"
},
"name": "copy_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Files or folders to copy (`/video/Downloads/clip.mkv`). | |
| overwrite | No | Replace items already at the destination; a replaced file may not be in the recycle bin (default false: they're skipped and listed). | |
| dest_folder | Yes | The existing folder to copy into (`/video/Archive`). |