memory_heal
Repairs agent memory by fixing dependency state, expired leases, orphaned records and superseded entries. Preview changes with dryRun=true or apply audits after running memory_diagnose.
Instructions
Apply supported repairs for selected diagnostic categories: action dependency state, expired/orphaned leases, sentinels, sketch actions, signals and superseded memories. This can delete orphaned or expired records and changes state with audit entries. dryRun='true' reports proposed fixes without applying them; default applies repairs. Returns {success,fixed,skipped,details}. Run memory_diagnose first and review which issues are fixable; not every diagnostic has an automatic repair.
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_heal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Set to 'true' for dry run (report but don't fix) | |
| categories | No | Comma-separated categories to heal (default all) |