Skip to content

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.

ParameterTypeRequiredDescription
idsnumber[]YesMemory IDs to merge
contentstringNoCustom merged content (auto-generated if omitted)

Returns the new merged memory’s ID.

{
"ids": [12, 15, 23]
}
{
"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 recall returns multiple memories about the same thing
  • Prefer consolidate for larger groups of memories