Read memory
Two reads. Both exist on REST and MCP.
recall
Search for facts. Send at least one of query, predicate, or related_to.
{ "query": "user:maya", "limit": 20 }
{
"query": "programming languages Maya knows",
"limit": 20
}
{
"predicate": "has_skill",
"related_to": "user:maya"
}
- A
type:idquery looks up that entity. - Natural language uses semantic search.
predicate/predicatesfilter relationship type.entity_typekeeps results to one prefix (user,company).related_tofinds facts connected to an entity.fuzzy_matchhelps with typos in names.depthexpands neighbors. Default 2. Start small.limitdefaults to 20 (max 200).offsetpages.sort_byorders a listing:created_at,predicate,subject,object,confidence,id.objectis the entity name, or the literal value when there is no entity.sort_orderisascordesc. Defaultasc. Pages are stable: the tie-break isid.- Omit both to keep the old order. Semantic search stays ranked by relevance. Set
sort_bywhen you want a sorted page instead of a relevance rank.
Field reference: recall.
recall_connections
Walk the graph from one entity.
{ "entity": "user:maya", "depth": 2 }
Default depth is 2. limit defaults to 20 (max 500).
Use this when you already know the node. Use recall when you are searching.