agent_memory_cleanup
Clean up orphaned and over-limit server processes while trimming Thread Keeper memory. Preview the plan with dry-run before applying safe cleanup.
Instructions
Trim ThreadKeeper memory and clean orphan/over-limit server processes.
By default this applies the safe cleanup path. Set dry_run=True to inspect the plan first. It does not kill active spawned child agents.
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": "agent_memory_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| dry_run | No | ||
| json_output | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |