memory_related
Get related memories for any memory ID, with an optional refresh to recompute stale cross-references and return up-to-date linked entries.
Instructions
Return cross-referenced memories for a given entry.
Consistency: the related graph is eventually consistent. When a
new memory A is created or updated with references to an existing B,
A.related is computed fresh but B.related is not re-cascaded — it stays
valid until either a full rebuild or an explicit refresh. Pass
refresh=True to recompute this memory's crossrefs on the fly (the
strong-consistency path). For a full rebuild across the store, call
memory_rebuild_crossrefs.
An EMPTY stored list is a stored answer too: it is returned as-is and is
only recomputed with refresh=True (or a rebuild), the same rule as a
non-empty list. Only a memory whose crossrefs were never computed is
computed on read. (Before this change an empty list was recomputed on
every call.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"memory_id": "<memory_id>"
},
"name": "memory_related"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| memory_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |