map_neighbors
Explore the static relationship graph around a code node to see callers, callees, imports, and inheritance. Use to map dependency fan-in/out quickly before deeper verification.
Instructions
Explore the static relationship graph around one node: callers/callees, imports, inheritance, containment. Call this BEFORE nav_references when you want the shape of the dependency fan-in/out cheaply — it is instant and token-budgeted, while nav_references invokes the language server. Edges come from static analysis: resolved:false edges are name-match guesses, and any edge can be stale or miss dynamic dispatch. Once you've picked the edges that matter, verify with nav_references or nav_callHierarchy at the location from resolve(nodeId).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| nodeId | Yes | Map node ID, e.g. "py:src/auth/session.py#SessionStore.refresh" or "ts:src/index.ts" (file node) | |
| maxNodes | No | ||
| direction | No | both | |
| edgeKinds | No | Restrict to these edge kinds; omit for all | |
| tokenBudget | No | Max tokens for the response. Lists are truncated to fit, with a note saying what was dropped and how to get it back. |