memory_gc_tool
Purge terminal-state memories older than a retention window. Eligible items are superseded, invalidated, or resolved, untouched for the retention period and unreferenced; defaults to dry-run.
Instructions
Purge terminal-state memories older than a retention window.
Only superseded/invalidated/resolved items untouched for retention_days
and not referenced by any relation are eligible. Defaults to dry-run.
Args: retention_days: Age threshold in days (default 90) dry_run: Report candidates without deleting (default True) project: Optional project root path. Auto-detected from git root if omitted.
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": "memory_gc_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | ||
| dry_run | No | ||
| project | No | ||
| retention_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |