Install trial (copy, run, diff)
box_trialRuns an install-and-observe trial in a disposable Windows sandbox: copies a host file or folder, executes a command, snapshots before/after, and returns exit code, logs, and change diff.
Instructions
One full install-and-observe iteration in a single call: (start if none is running, or reset if clean=true) -> snapshot 'pre' -> copy host_path in -> run command -> snapshot 'post' -> diff. Returns exit code, duration, the last 4000 chars of stdout and 2000 of stderr, and the change summary. Overwrites earlier 'pre'/'post' snapshots. Destroys the previous sandbox state when clean=true. Use box_exec/box_snapshot/box_diff instead for finer control.
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": {
"host_path": "<host_path>",
"command": "<command>"
},
"name": "box_trial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | If a sandbox is already running, reset it to a clean one first (true) or reuse it as-is (false). | |
| command | Yes | PowerShell command to run in the sandbox; '{in}' is replaced with the copied item's guest path, e.g. "& '{in}' /S". | |
| network | No | Network mode if a sandbox is booted or reset: 'on' or 'off'. Default: 'on' for a new sandbox, current mode on reset. | |
| snapshot | No | Take 'pre'/'post' snapshots and diff them. Set false to skip (snapshots can take minutes). | |
| host_path | Yes | Absolute path of a file or folder on the Windows host to copy into the sandbox, e.g. C:\builds\setup.exe. | |
| timeout_s | No | Seconds before the command is killed. |