get_call_hierarchy
Trace function callers and callees through the Python codebase to visualize call graph hierarchy.
Instructions
Python: Trace function callers and callees through the codebase.
Deprecated: Replaced by inspect(handle).edge_counts.callers for the
count and future expand(handle, edge="callers") for the list in the
redesigned API. See
docs/superpowers/specs/2026-05-02-progressive-disclosure-api-design.md
for the migration plan. This method will be removed once the legacy
MCP tools are deprecated (Phase B of the migration).
For general use, prefer lookup() which accepts any identifier form. This tool provides full call graph traversal beyond the default limit.
Args: function_name: Name of the function file: Optional file to search in (searches whole project if not specified) project_path: Root path of the project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_name | Yes | ||
| file | No | ||
| project_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||