Detect and clear orphaned sandboxes
sandbox_janitorDetects orphaned headless Windows Sandbox sessions that hold the one-sandbox slot and, with fix enabled, stops them via client teardown or CmService restart, returning an elevated command.
Instructions
Detect a headless Windows Sandbox (vmmemWindowsSandbox alive without a client process - it holds the one-sandbox slot and ignores sandbox_stop). With fix:true: graceful platform stop for listed ids, client-process teardown, then a CmService restart fallback; if elevation is required it returns the exact elevated command instead of failing silently.
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": "sandbox_janitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Default false: report only. |