graph_neighbors
Returns structural neighbors of a graph node: called functions, callers, imports, contained items, and inherited types, up to depth hops. Use to trace code dependencies around a specific node.
Instructions
Return structural neighbors of a graph node.
Shows which functions call this node, which it calls, what it imports,
what it contains, and what it inherits from — up to *depth* hops away.
Use search_graph first to find the exact node ID.
Args:
node_id: Node ID or label substring (e.g. "vectorstore_search" or "search").
path: Absolute path to the codebase root directory.
depth: Number of hops to traverse (1 = direct edges only, default 1).
Returns:
Categorised list of neighboring nodes with their source locations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| depth | No | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |