recall

Search stored facts. REST POST /v1/recall and MCP tool recall.

POST/v1/recall

Send at least one of query, predicate, or related_to.

FieldTypeRequiredDescription
querystringno

Entity (type:id) or natural-language topic. Max 2000.

predicatestringno

Filter to one relationship type.

predicatesstring[]no

Filter to any of these relationship types. Max 20.

entity_typestringno

Keep results whose entity type matches (e.g. user).

related_tostringno

Facts connected to this entity.

depthintegerno

Neighbor expansion. Default 2 when omitted.

fuzzy_matchbooleanno

Match similar entity names.

limitintegerno

Max facts. Default 20, max 200.

offsetintegerno

Skip this many facts. Use the same sort_by and sort_order on every page.

sort_bystringno

Order listing results. One of created_at, predicate, subject, object, confidence, id. object is the linked entity name, or the literal value when the object is not an entity. Omit to keep historical order (semantic relevance when the query is embedded). When set, recall returns that ordered page and does not rank by embedding or depth-fill the page.

sort_orderstringno

asc or desc. Default asc. Tie-break is id in the same direction.

collectionstringno

Collection code. Omit for the connection default. "" forces the default bucket.

Response

{
  "facts": [
    { "subject": "user:maya", "predicate": "has_skill", "object": "TypeScript" }
  ],
  "count": 1
}

Each fact may include value (literal object), context, source, score (semantic search only), and created_at.


recall_connections

Walk neighbors of one entity. REST POST /v1/recall_connections and MCP tool recall_connections.

POST/v1/recall_connections

FieldTypeRequiredDescription
entitystringyes

Starting entity (type:id).

depthintegerno

Hops to walk. Default 2.

limitintegerno

Max connections. Default 20, max 500.

offsetintegerno

Skip this many connections.

collectionstringno

Collection code. Omit for the connection default.

{
  "entity": "user:maya",
  "depth": 2
}