get_symbol_neighbors
Analyze code dependencies by performing BFS graph traversal from a symbol to identify calls, imports, inheritance, and references within a codebase.
Instructions
BFS graph traversal from a symbol — who calls it, what it calls, imports, inheritance. Eliminates 20+ file reads per question.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol ID to start BFS from | |
| snapshot_id | Yes | Snapshot to query | |
| depth | No | BFS depth (default 2, max 5) | |
| edge_types | No | Comma-separated edge types to follow: call,import,inherit,implement,reference | |
| direction | No | outgoing = who this calls; both = also who calls this | outgoing |