get_neighbors
Find immediate fact-graph neighbors for an entity, returning connecting predicate, direction, type, and fact ID. Filter by entity type to disambiguate.
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 |