Test an app in a fresh sandbox
sandbox_runTest whether a Windows build works on a clean machine: boot a disposable sandbox, deploy and launch the app, capture screenshots, check crashes, run tests, collect files, destroy, and write a report.
Instructions
One shot: boot a fresh sandbox, copy the app folder in, run it, screenshot it, check for crashes, optionally run a PowerShell test script inside, copy files out, destroy the sandbox and write report.md. Use this for "does my build work on a clean Windows machine?". Fails if a sandbox is already running.
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": {
"app": "<app>"
},
"name": "sandbox_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Host path to an .exe, app folder, .msix, .msixbundle, .appx or .appxbundle. | |
| exe | No | Exe name when app is a folder with more than one .exe. | |
| args | No | ||
| cert | No | Host .cer to trust in the disposable guest TrustedPeople store only. | |
| deps | No | Host folder of dependency packages. Defaults to a deps folder beside the package. | |
| keep | No | Leave the sandbox running afterwards for more poking. | |
| test | No | Host path to a .ps1 run inside after launch. Gets $env:SBX_APP_PID, SBX_APP_DIR, SBX_APP_EXE, SBX_OUT. Non-zero exit = fail. | |
| appId | No | Manifest Application Id; required when the package has multiple applications. | |
| record | No | Record desktop evidence at 2 fps for up to 120 seconds; report links HTML and optional MP4. | |
| window | No | ||
| collect | No | Sandbox paths to copy back to the host afterwards (logs, output files). | |
| console | No | Console app: run to completion and capture stdout instead of launching a window. | |
| network | No | on (default): normal internet. firewall: guest firewall blocks outbound (code running as admin could undo it). off: no network adapter at all (strongest isolation; the agent talks over shared folders, a bit slower). | |
| waitSec | No | GUI apps: seconds to let the app settle before observing (default 5). | |
| memoryMB | No | ||
| provision | No | Explicit opt-in: auto or comma-separated runtime list (e.g. desktop:10.0:x64,vcredist:x64). Host downloads and verifies installers; guest can stay offline. Marks this run PROVISIONED, never a clean-machine pass. Omit for a true clean-machine test. |