close_instance
Terminate a sandboxed instance by killing its app and Xephyr display, then verify it has stopped. Use all_launched to close every instance launched by this server.
Instructions
Close an instance: kill its app + its Xephyr display, and verify it actually went down.
Returns {"ok", "instance", "detail"} only after the display stops responding. With
all_launched=true closes EVERY instance this server process launched (instance is ignored)
and returns {"ok", "closed": [...], "failed": [...]} — "ok" is false if any survived.
Fails (isError) if the instance isn't running, if it survives SIGTERM, or for instance 1 —
the main start-display.sh sandbox is protected (stop it from the host with pkill Xephyr).
Closing an instance another agent launched is allowed but visible to it (launched_here).
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": "close_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | ||
| all_launched | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |