trace_call_chain
Trace function call chains in a codebase by starting from any function, class, or file node. Visualize the call tree as indented text to understand code dependencies and impact.
Instructions
Trace the function call chain starting from a node (BFS on 'calls' edges).
For class/file nodes: automatically resolves to contained functions and traces call chains from them.
Args: start_node_id: ID of the starting node (function, class, or file). max_depth: Max traversal depth (default 3, max 10). project: Project name.
Returns: Call tree as indented text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| max_depth | No | ||
| start_node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |