Graph Traverse
localnest_graph_traverseExplore connections in a knowledge graph by starting from an entity and following relationships up to a configurable number of hops. Returns discovered entities and their paths.
Instructions
Traverse the knowledge graph from a starting entity with configurable max hops (default 2). Uses recursive CTEs with cycle prevention. Returns discovered entities with path information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_entity_id | Yes | ||
| max_hops | No | ||
| direction | No | both | |
| response_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |