process_cleanup
Find and kill stale hanging or orphaned cmd.exe and conhost.exe processes older than a set age; optionally list them first or include orphaned node.exe processes.
Instructions
Find and kill hanging/orphaned cmd.exe and conhost.exe processes. Targets windowless CMD processes older than the specified age (default: 30 seconds). Use this to clean up stale processes left by Antigravity's run_command tool.
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": "process_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, only list processes without killing them. Defaults to false. | |
| includeNode | No | Also clean up orphaned node.exe processes. Defaults to false. | |
| maxAgeSeconds | No | Kill processes older than this many seconds. Defaults to 30. |