Copy files
copyTransfers files or folders between the local machine and a peer using one colon-prefixed remote path; handles recursive folders and resumes interrupted large transfers.
Instructions
Copy a file or folder between this machine and the peer. Exactly one side is the peer's and starts with ':' — upload: from "./a.zip" to ":/home/u/a.zip"; download: from ":C:\logs\x.log" to "./x.log". Folders are copied recursively; big interrupted copies resume.
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": {
"peer": "<peer>",
"from": "<from>",
"to": "<to>"
},
"name": "copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| peer | Yes | The peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly |