get_type_hierarchy
Show the type hierarchy of a class: superclasses upward and subclasses/implementations downward. Returns indented trees with file locations, marking external bases as unresolved.
Instructions
Show a class's type hierarchy: superclasses upward and subclasses / Protocol-ABC implementations downward.
Returns two indented trees with 'path:line'. External bases (e.g. pydantic
BaseModel) appear as leaves marked external/unresolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Class name (bare or dotted). | |
| depth | No | Max levels up and down (1-8). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |