move_files
Move files or folders into an existing destination folder, removing them from their sources. By default, skip and list name conflicts unless overwrite is enabled.
Instructions
Move files or folders into a destination folder; a folder moves with everything in it, and the sources are removed. To keep the sources, use copy_files. dest_folder must already exist; it isn't created. With overwrite=false (default), items whose name is already at the destination are skipped, listed and left at the source. 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 moved. A whole shared folder (/video), recycle bin or user's home folder (/homes/<user>) is refused as a source: move its items by path. A long move 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": "move_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Files or folders to move (`/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 move into (`/video/Archive`). |