Run PowerShell in sandbox
box_execRun PowerShell commands inside an active Windows sandbox and receive structured exit, stdout, stderr, timeout, and timing results.
Instructions
Run a PowerShell command inside the running sandbox and wait for it. Returns JSON with exit, stdout, stderr, timed_out and ms. Side effects are whatever the command does, confined to the sandbox (it can reach the internet if network='on'). Requires box_start first. Use box_trial for a full copy-run-diff cycle.
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": {
"command": "<command>"
},
"name": "box_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | PowerShell script text, e.g. 'Get-ChildItem C:\winbox\in'. | |
| timeout_s | No | Seconds before the command is killed (the call gives up after timeout_s + 60). |