Copy file out of sandbox
box_copy_outCopies files or folders from a running Windows sandbox to the host output folder, overwriting same-name items, so results persist before stopping or resetting the sandbox.
Instructions
Copy a file or folder from inside the sandbox to the host run folder (\mail\out<name>), overwriting an existing item of the same name. Returns the host path. Use before box_stop/box_reset to keep results. Requires a running sandbox.
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": {
"guest_path": "<guest_path>"
},
"name": "box_copy_out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guest_path | Yes | Absolute Windows path inside the sandbox, e.g. C:\Users\WDAGUtilityAccount\AppData\Local\app\log.txt. |