The low-level graph exploration tool. Lets you walk the code graph from any node, filtering by edge types (calls, imports, contains, etc.), node types (function, class, module, etc.), and traversal direction. Use this when the higher-level tools don't cover your specific query.
get_callers or get_callees (e.g., following import edges)| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
nodeId | string | yes | — | ID of the starting node (from a previous search or tool result) |
direction | enum | no | outgoing | Traversal direction: outgoing, incoming, both |
edgeTypes | array | no | — | Filter to specific edge types (e.g., ["calls", "imports", "contains"]) |
nodeTypes | array | no | — | Filter to specific node types (e.g., ["function", "class", "module"]) |
maxDepth | number | no | 3 | Maximum traversal depth |
limit | number | no | — | Maximum number of nodes to return |
Natural language:
What modules does this file import?
MCP call:
{
"tool": "stellarion_traverse_graph",
"arguments": {
"nodeId": "file:src/main.ts",
"direction": "outgoing",
"edgeTypes": ["imports"]
}
}
Natural language:
Show me all functions and classes defined in the auth module
MCP call:
{
"tool": "stellarion_traverse_graph",
"arguments": {
"nodeId": "module:src/auth",
"direction": "outgoing",
"edgeTypes": ["contains"],
"nodeTypes": ["function", "class"]
}
}
Natural language:
Show me everything connected to the UserService class — imports, methods, callers, callees
MCP call:
{
"tool": "stellarion_traverse_graph",
"arguments": {
"nodeId": "class:UserService",
"direction": "both",
"maxDepth": 2
}
}
Natural language:
What files import the database module?
MCP call:
{
"tool": "stellarion_traverse_graph",
"arguments": {
"nodeId": "module:src/db",
"direction": "incoming",
"edgeTypes": ["imports"],
"maxDepth": 1
}
}
Returns a subgraph of nodes and edges:
id, type, name, uri, linesource, target, typestellarion_symbol_search to find a starting node, then use its ID here.calls, imports, contains, implements, extends, uses.function, class, method, module, interface, variable, type.maxDepth low (1-2) when exploring broadly with no edge type filter — large graphs can return a lot of data.stellarion_get_callers, stellarion_get_callees, stellarion_find_by_imports.