distill_memories
Audit scope memory health, suggest duplicate consolidations, or prune expired and stale records; dry-run mode prevents accidental deletion.
Instructions
Audit scope memory health, suggest duplicate slot consolidations, or prune expired episodic and abandoned stale records. action='audit' (default) and action='suggest' are read-only diagnostics; action='prune' archives expired episodic notes and stale memories older than stale_age_days, but is gated by dry_run=True by default (set dry_run=False to commit changes and sync Markdown exports). Use distill_memories for periodic scope-wide hygiene; use deprecate_memory to retire a single obsolete memory ID, or save_memory with replaces_id to apply consolidation suggestions.
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": "distill_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Target scope to audit or distill. Use 'all' or specific scope name like 'homelab' or 'helios'. | global |
| action | No | Action to perform: 'audit' (read-only health scan), 'prune' (archive expired/stale memories), or 'suggest' (recommend deduplication consolidations). | audit |
| dry_run | No | Safety gate for action='prune'. Set to False to apply archival to SQLite. | |
| stale_age_days | No | Minimum age in days for stale memories to be considered for pruning. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |