merge
Merge two or more memories that cover the same topic into a single, well-written memory. The originals are removed and replaced by the merged result.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
ids | number[] | Yes | Memory IDs to merge |
content | string | No | Custom merged content (auto-generated if omitted) |
Return Value
Section titled “Return Value”Returns the new merged memory’s ID.
Examples
Section titled “Examples”Merge duplicates
Section titled “Merge duplicates”{ "ids": [12, 15, 23]}Merge with custom content
Section titled “Merge with custom content”{ "ids": [12, 15], "content": "Auth system uses JWT (RS256) with 15-min expiry. Refresh tokens stored in httpOnly cookies, rotated on each use."}- Original memories are deleted after merge
- Edges from original memories are preserved on the new memory where applicable
- Use this when
recallreturns multiple memories about the same thing - Prefer
consolidatefor larger groups of memories
Related Tools
Section titled “Related Tools”- consolidate — Replace clusters with summaries
- find_clusters — Discover groups to merge
- update — Edit a single memory