Copy out of sandbox
sandbox_copy_outCopies a file or folder from the sandbox to the host run out directory, confining the destination and marking copied data untrusted because guest-written files may be attacker-controlled.
Instructions
Copy a file or folder from the sandbox back to the host (into the run outDir/files). The result is marked untrusted: the guest writes that share, so treat every copied-out file as attacker-controlled. The destination is confined to the run out directory.
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": {
"sandboxPath": "<sandboxPath>"
},
"name": "sandbox_copy_out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Plain file name for the copy under outDir/files (default: source name). | |
| sandboxPath | Yes | Path inside the sandbox. |