Copy path to backend
copy_path_to_backendCopy files or folder trees to another backend, or resume interrupted large copies within the same backend. Use for cross-backend transfers and resumable bulk copies.
Instructions
Copy a file or folder tree to another backend, or resumably within one. Use when: data must cross backends, or a big copy should be resumable. Instead: copy_tree within one backend; move_file_to_backend to move a file. Requires: --mcp-tools transfer. Behavior: never changes the source; one backend with resumable=false is its own copy, as in copy_tree. Existing files are skipped unless overwrite=true (destructive). Local links to files are copied as files, as copy_tree does; other links and special files are skipped. Each skipped entry has a reason; a secret file's is outside-root. resumable=true with the same arguments continues an interrupted run. Mode and mtime are not kept. Time limit: 30 min. Returns: {src, dst, copied, truncated, complete, entries}; entry fields and reasons explained in outputSchema.
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": "copy_path_to_backend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | No | Destination on dst_backend (absolute, or relative to the MCP root): the file, or for a source folder the folder that becomes its copy. Parents are created. Required unless dst_b64 is given. | |
| src | No | Source path on src_backend (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. | |
| max_files | No | Copy at most this many files; more sets truncated=true. | |
| overwrite | No | Replace destination files that exist (false: skip them, reason exists). | |
| resumable | No | Copy in 4 MiB segments that a repeated call can resume after an interruption. | |
| 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. | |
| max_file_bytes | No | Skip files larger than this many bytes (reason too-large), also when a source sends more than it reported. Default 10 GiB. | |
| subfolder_levels | No | Subfolder levels, counted from 0: 0 = src's own files, 1 = also its subfolders'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | ||
| src | Yes | ||
| copied | Yes | ||
| entries | Yes | ||
| complete | Yes | ||
| truncated | Yes |