copy_file
Copy a file up to 8 MiB with SHA-256 verification, ensuring no overwrites, and return a recoverable change ID.
Instructions
Copy one regular file <=8 MiB within an rw workspace. Require source SHA-256 and an absent destination with an existing parent. No recursive trees, links or overwrite. Returns a recoverable change_id.
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": {
"workspace": "<workspace>",
"path": "<path>",
"destination": "<destination>",
"expected_sha256": "<expected_sha256>",
"request_id": "<request_id>"
},
"name": "copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| workspace | Yes | ||
| request_id | Yes | ||
| destination | Yes | ||
| expected_sha256 | Yes |