get_type_hierarchy
Retrieve the complete inheritance chain (superclasses, interfaces, and subtypes) for any Java type by providing a file position or qualified type name.
Instructions
Get the type hierarchy (supertypes and subtypes) for a Java type.
USAGE: Position on a type, returns full inheritance chain OUTPUT: Superclasses, interfaces, and all subtypes
Can be called with either:
File position (filePath, line, column) - finds type at cursor
Type name (typeName) - looks up type by qualified name
IMPORTANT: Uses ZERO-BASED coordinates when using file position.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Path to source file (for position-based lookup) | |
| line | No | Zero-based line number | |
| column | No | Zero-based column number | |
| typeName | No | Fully qualified type name (alternative to position) | |
| maxDepth | No | Maximum depth of hierarchy to return (default 10) |