Tool
brain_knowledge_neighborhood
Expand the neighborhood (related entities + relations) around one knowledge entity
Expand the neighborhood (related entities + relations) around one knowledge entity
Behavior
- HTTP
GET /brain/knowledge/entities/:entity_ref/neighborhood
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| depth | integer | — | Hops to expand (engine clamps to 3) |
| limit | integer | — | Max neighbors |
| scope | string | — | Read scope; 'both' (default) unions shared + your private |
| entity_ref | string | • | Entity id or name to expand around |
| entity_type | string | — | Only include neighbors of this entity type |
| relation_type | string | — | Only traverse this relation type |
Response
| Field | Type | Always | Description |
|---|---|---|---|
| root | object | • | |
| entities | array | • | |
| relations | array | • | |
| elapsed_ms | number | • | |
| request_id | string | • |
Try it
Expand the neighborhood (related entities + relations) around one knowledge entity.