get_type_hierarchy
Retrieve the complete inheritance chain for Java types, including superclasses, interfaces, and all subtypes, using either file position or type name lookup.
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 |
|---|---|---|---|
| column | No | Zero-based column number | |
| filePath | No | Path to source file (for position-based lookup) | |
| 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) |