get_type_hierarchy
Retrieves the full inheritance chain for a Java type, including superclasses, interfaces, and all subtypes. Supports lookup by 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 |
|---|---|---|---|
| line | No | Zero-based line number | |
| maxDepth | No | Maximum depth of hierarchy to return (default 10) | |
| typeName | No | Fully qualified type name (alternative to position) | |
| column | No | Zero-based column number | |
| filePath | No | Path to source file (for position-based lookup) |