get_neighbors
Retrieve all entities directly connected to a given entity in the fact graph, showing relationship predicate and direction.
Instructions
Get immediate neighbors of an entity in the fact graph.
Returns all entities directly connected by a single fact.
Args: entity: Entity name to get neighbors for entity_type: Type filter (optional, for disambiguation)
Returns: List of neighbors with: - entity: Neighbor entity name - type: Neighbor entity type - predicate: Relationship predicate - direction: 'outgoing' (entity is subject) or 'incoming' (entity is object) - fact_id: UUID of connecting fact
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | ||
| entity_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |