Move file to backend
move_file_to_backendMove a file from one backend to another: copy it, verify the byte count, then delete the source only after a complete copy, so a failed transfer leaves the original intact.
Instructions
Move one file to another backend: copy, check the byte count, delete the source. Use when: a file must leave one backend for another. Instead: move_path within one backend (folders too); for a folder across backends copy_path_to_backend, then delete_path. Requires: --mcp-tools transfer. Behavior: destructive for the source, deleted only after a complete copy; a failed copy removes the partial destination and the source stays. A repeat fails with 'destination exists'. No size cap, not resumable (copy_path_to_backend is). An existing destination or a folder fails. Refuses secret files. Time limit: 30 min. Returns: {src, dst, bytes}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "move_file_to_backend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | No | The destination file on dst_backend (absolute, or relative to the MCP root); it must not exist. Parents are created. Required unless dst_b64 is given. | |
| src | No | The source file on src_backend, not a folder (absolute, or relative to the MCP root). Required unless src_b64 is given. | |
| dst_b64 | No | dst as base64 of its raw bytes, for non-UTF-8 names; replaces dst. | |
| src_b64 | No | src as base64 of its raw bytes, for non-UTF-8 names; replaces src. | |
| dst_backend | No | Backend id of the destination, from list_backends; omit for the default backend. | |
| src_backend | No | Backend id of the source, from list_backends, e.g. 'profile:nas'; omit for the default backend. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | ||
| src | Yes | ||
| bytes | Yes |