file_copy
Copy a file or folder to a destination path within or across storage; the queued operation avoids overwrites by placing name conflicts beside the target, so check its status for the final name.
Instructions
Copy a file or folder to dst - within a storage or to another one - on the server, through the operations queue (the explorer's paste). dst is where the copy lands (its folder and its name), as for file_move. Never overwrites: a taken name lands beside it (rapor-copy.txt), so read the finished operation rather than assuming the name. Needs edit rights on the source and files.create in the destination folder. An encrypted file does not leave its encrypted folder (E2E_BOUNDARY). It answers 202 with the queued operation ({op: {id, …}}): follow it with op_get {id} until its status is ok (or partial, failed, cancelled), stop it with op_cancel.
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": {
"src": "<src>",
"dst": "<dst>"
},
"name": "file_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | adapter:// path the copy lands at (folder + new name), on this storage or another one | |
| src | Yes | adapter:// path of the file or folder to copy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the operation's JSON answer - the body its REST twin under /api/ai answers (an object) | |
| status | Yes |