graph_neighbors
Explore relationships and dependencies around any code node in a FastAPI project. Filter by direction and edge types to trace usage, calls, and references.
Instructions
Explore the knowledge graph around a node.
node can be a graph id, a route ("GET /api/users/" or "/api/users/"), a table name, or a
function/class name. direction is "out" (what it uses), "in" (what uses it) or "both".
edge_types filters edges, e.g. ["DEPENDS_ON", "CALLS"]. Valid types: INCLUDES, HAS_ROUTE,
HANDLED_BY, DEPENDS_ON, ACCEPTS, RETURNS, CALLS, USES, QUERIES, RENDERS, MIDDLEWARE, INHERITS,
MAPS_TO, REFERENCES, RELATES_TO, MIRRORS, DEFINES (excluded by default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| depth | No | ||
| direction | No | both | |
| edge_types | No | ||
| project_root | Yes |