get_type_hierarchy
Inspect class and interface inheritance to retrieve base classes or derived types for a symbol at a specified file location, clarifying type relationships.
Instructions
Inspect class and interface inheritance hierarchy. direction='supertypes' returns base classes/interfaces; direction='subtypes' returns derived types.
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": {
"file_path": "<file_path>",
"line": "<line>",
"character": "<character>"
},
"name": "get_type_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| character | Yes | ||
| direction | No | supertypes | |
| file_path | Yes | ||
| symbol_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||