Graph neighborhood
get_graph_neighborhoodExplore the BFS neighborhood around a graph node by ID or label, returning connected nodes and edges within a configurable depth limit (default 2, max 4).
Instructions
Return the BFS neighborhood around one graph node by id or label: { nodes: [{ id, label, node_type }], edges: [{ source_node_id, target_node_id, edge_type }] } within a depth budget (default 2, max 4). Read-only. Tuned for "what touches this action?"; use get_knowledge_graph to traverse from a component seed, or get_graph_node for a single node's row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | Starting graph node id or label to expand around (e.g. an inventory Action id or component name) | |
| depth | No | BFS hops to traverse outward. Default 2; clamped to a max of 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Edges connecting the returned nodes | |
| nodes | Yes | Graph nodes within the depth budget |