neighbors
Expand a seed entity's graph neighborhood up to six hops, returning connected entities and relations with per-hop direction tags; filter by predicate and cap results.
Instructions
Expand an entity's neighborhood up to 6 hops and return the hydrated neighbor entities plus the relations connecting them, each hop tagged direction=outgoing|incoming relative to the seed. LLM-free graph walk: pass a recall anchor as the seed and traverse the structure yourself. The DEFAULT view is point-in-time NOW: only edges valid now and not superseded; pass includeInactive=true for full history, or time-travel with at/asOf. Filter edges by predicate. The limit (default 50) caps total neighbors across all hops, so deep walks stay bounded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Valid-time anchor (RFC 3339 UTC). Walk edges live at this instant. Defaults to now. | |
| asOf | No | Transaction-time anchor (RFC 3339 UTC). Ignore edges recorded after this instant. | |
| seed | Yes | Entity to expand from: an entities/{uid} ref (as returned in a recall hit's entities[]), a bare uid, or a display name (resolved case-insensitively; an unknown or ambiguous name returns an error naming the candidate uids so you can retry). | |
| depth | No | Hops to expand. 1 = direct neighbors, 2 = neighbors-of-neighbors, up to 6. Defaults to 1. | |
| limit | No | Maximum neighbors to return across all hops. Defaults to 50. | |
| scopes | No | Scopes to read from: project, personal, team. Defaults to project+personal. Unknown values are rejected. | |
| predicates | No | Only follow edges with these predicates. Omit to follow any. | |
| includeInactive | No | Follow superseded / expired edges too. Off by default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| neighbors | Yes |