env_gc
Remove expired test environments by TTL or missing VirtualBox VMs, with a dry-run option to preview cleanup before deleting.
Instructions
Remove environments that have outlived the TTL set at fork time (ttl_seconds), plus any whose VM has vanished from VirtualBox. Environments forked without a TTL are never removed by age. Pass dry_run to see what would go without removing it. Good to call before finishing a session so short-lived envs do not pile up.
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": "env_gc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | list what would be removed without removing it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| removed | Yes |