Navigation
Tools for moving through the graph — upstream, downstream, sideways.
code_callers
Section titled “code_callers”Who calls this function?
code_callers(name="UserService.findById")code_callers(name="processPayment", compact=true)compact=true returns signatures only — ~70% fewer tokens when you just need names.
code_callees
Section titled “code_callees”What does this function call?
code_callees(name="OrderService.checkout")code_context
Section titled “code_context”Callers + callees in one call. The most efficient way to understand a symbol’s place in the graph.
code_context(name="AuthMiddleware")code_context(name="UserService", compact=true)code_related
Section titled “code_related”Everything connected to a symbol: callers, callees, sibling methods, linked knowledge notes.
code_related(name="UserService")Good starting point when exploring an unfamiliar module — shows the full neighborhood.
code_trace
Section titled “code_trace”Follow the call chain from a symbol, up or down.
code_trace(name="OrderService.checkout", direction="down", depth=5)code_trace(name="processPayment", direction="up")| Param | Type | Default | Description |
|---|---|---|---|
direction | "up" | "down" | "down" | Follow callees or callers |
depth | number | 5 | Max hops |
code_imports
Section titled “code_imports”Who imports this module?
code_imports(name="auth.ts")code_imports(name="UserService")Useful before moving or renaming a module — see every file that would break.