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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "get_type_hierarchy"
}
}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 |