memory_consolidate
Consolidate near-duplicate memories into a single canonical note, marking originals as superseded to shorten the memory bank while preserving the audit trail.
Instructions
Replace a cluster of near-duplicate memories with one canonical note.
Every entry matching replaces is marked superseded by new_text,
which is stored fresh — the bank gets shorter without losing the audit
trail.
Returns: {superseded_count, superseded_texts, new_memory_stored}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Labels for the new note. | |
| source | No | Source tag for the new note. | |
| new_text | Yes | The canonical note that replaces them. | |
| replaces | Yes | The memories being folded in; each is matched by exact text or close paraphrase. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||