get
Fetch a single record by AIP resource name or entity display name, including typed details and provenance lineage, to turn recall hits into canonical memory records.
Instructions
Fetch one record by AIP resource name — entities/{uid}, episodes/{uid}, relations/{uid}, facts/{uid}, insights/{uid}, or consolidatedMemories/{uid} — plus its provenance lineage. For an entity you may also pass a bare uid or a human display name (resolved case-insensitively, the same forms relations/neighbors accept). When a name is shared across kinds, a non-document entity deterministically wins over a same-named document — the passed-over document(s) are surfaced in shadowedDocuments as entities/{uid} you can fetch directly; pass kind to target a specific kind, or a vault path / entities/{uid} to address a document. A name that is ambiguous among non-document entities (or unknown) returns a pointed error naming the candidates. The structured, LLM-free way to follow any recall hit's name field. Returns a discriminated union tagged by type. An entity record returns the canonical node (uid, kind, displayName, confidence, resolutionStatus) AND its typed properties, external identifiers, and currently-open scalar facts. A relation record carries hydrated endpoints + validity. An episode carries its source text. An insight (type=insight) returns the synthesized statement, insightType, currentConfidence, state, synthesizedAt, and its sourceUids as entities/{uid} citations. A consolidated memory (type=consolidatedMemory) returns the compressed summary, memoryType, confidence, consolidatedAt, and its sourceUids as episodes/{uid} citations. Demoted insights (state='demoted') are still fetchable — get is not the hot-recall index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Valid-time anchor (RFC 3339 UTC) for an entity record's fact rows: return each slot's value live at this instant. Defaults to now. Does not move the entity identity row; ignored for non-entity records. | |
| asOf | No | Transaction-time anchor (RFC 3339 UTC) for an entity record's fact rows: hide facts recorded after this instant. Ignored for non-entity records. | |
| kind | No | Optional entity kind hint (e.g. 'document', 'person', 'product'). When supplied alongside a display name, narrows the resolution to entities of that kind only. Useful when a name is shared between a document and a domain entity and you want the document specifically. Ignored for resource-name lookups (entities/{uid}) and bare uid lookups. | |
| name | Yes | What to fetch: an AIP resource name whose collection prefix routes the lookup (entities/{uid}, episodes/{uid}, relations/{uid}, facts/{uid}, insights/{uid}, or consolidatedMemories/{uid}) — feed one straight from a recall hit's name field — OR, for an entity, a bare uid or a human display name (resolved case-insensitively, like relations/neighbors). A non-entity record must use its collection prefix. | |
| scopes | No | Scopes to read from: project, personal, team. Defaults to project+personal. Unknown values are rejected. | |
| includeInactive | No | Include superseded / expired facts (the full slot history) on an entity record. Off by default. Ignored for non-entity records. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fact | No | Present when type=fact. A scalar state slot: subjectUid, stateKey, value, validity window. | |
| type | Yes | Which record kind this response carries. | |
| facts | No | Present when type=entity: the entity's currently-open scalar facts (its attributes), newest slot value per state_key. Empty when the entity has none. | |
| entity | No | Present when type=entity. The canonical node: uid, kind, displayName, confidence, resolutionStatus, and (when createEntity stored them) a 'properties' object of typed attributes validated against the kind's propertySchema. Its scalar facts (status, first name, preferences) arrive in the sibling 'facts' array; its external identifiers (hrb, email, …) in the sibling 'identifiers' array; its edges (who it connects to) live on relations — call relations or neighbors for those. | |
| episode | No | Present when type=episode. | |
| insight | No | Present when type=insight. A synthesized reflection: statement, insightType, currentConfidence, state (hot|demoted), synthesizedAt, and sourceUids typed as entities/{uid} citations. | |
| relation | No | Present when type=relation. Carries subject/object resource names for onward traversal, plus a 'status' trust posture: 'asserted' (authoritative) or 'proposed' (extracted from an untrusted connector source — excluded from supersession until promoted via 'maz promote' / the promoteRelation tool). | |
| provenance | No | Source/confidence/decided-at lineage walked back to the record's origin episode(s): direct for an episode, via source_event_uid for a relation, aggregated across citing episodes for an entity. Empty when none recorded. | |
| identifiers | No | Present when type=entity and the entity has external identifiers: the strong/weak identifiers (type + value, e.g. {type:"hrb",value:"HRB 12345 B"}) that anchor it for the resolver. Omitted when none. | |
| shadowedDocuments | No | Present when the name argument was resolved by display name AND one or more document entities share that name but were passed over in favour of a higher-priority non-document entity. Each entry gives the document's entities/{uid} resource name (ready to pass to get) and its bare uid. Omitted when the lookup was by resource name or uid, or when no document shares the winner's display name. | |
| consolidatedMemory | No | Present when type=consolidatedMemory. A compressed episode summary: summary, memoryType, confidence, consolidatedAt, and sourceUids typed as episodes/{uid} citations. |