Start sandbox
box_startBoots a disposable Windows Sandbox VM and acquires the host-wide lock, waiting until the guest agent is ready. Call it first to run commands, copy files, or snapshot an isolated Windows session.
Instructions
Boot a fresh, disposable Windows Sandbox VM and take the host-wide sandbox lock; call this first, then box_exec/box_copy_in/box_snapshot, and box_stop when done (box_trial starts one automatically). Blocks until the in-guest agent is ready (up to 240 s). Fails if this session already has a sandbox (use box_reset), if another agent holds the lock and wait_s runs out, or if a sandbox opened outside winbox is running. A lock left by a dead winbox process is taken over and its leftover sandbox is killed. Returns the boot time and the host run folder.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "box_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | Label shown to other agents waiting on the lock (default: WINBOX_OWNER env var or 'pid <n>'). | |
| wait_s | No | Seconds to wait (polling every 2 s) if another agent holds the sandbox; 0 = fail immediately. | |
| network | No | 'on' = normal networking; 'off' = no network adapter at all (use for running untrusted executables). | on |
| memory_mb | No | Sandbox RAM in MB. |