map_path
Finds the shortest structural path between two symbols, revealing how code areas connect through imports, calls, inheritance, or containment.
Instructions
Shortest structural path between two symbols in the static map (over imports/calls/inheritance/containment). Useful to understand how two areas connect before reading code. Static and possibly stale — confirm the load-bearing hops with nav_references.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | Map node ID, e.g. "py:src/auth/session.py#SessionStore.refresh" or "ts:src/index.ts" (file node) | |
| maxLen | No | ||
| 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. | |
| includeReferences | No | Also traverse noisy 'references' edges |