get_type_hierarchy
Retrieve the type hierarchy for a class or interface, showing parents (supertypes) or implementations/extensions (subtypes). Target by symbol name or file coordinates.
Instructions
Get type hierarchy for a class/interface. Direction: "supertypes" shows parents, "subtypes" shows implementations/extensions. Target it either by "symbol" name (preferred: no need to know coordinates) or by explicit file/line/column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to the file (relative to project root) | |
| line | No | Line number (1-based) | |
| column | No | Column number (1-based) | |
| symbol | No | Name of the symbol to target, instead of line/column. Qualify as "Container.member" (e.g. "UserService.getUser") to disambiguate. Combine with "file" to restrict the search to one file. An ambiguous name returns an error listing the candidates. | |
| direction | Yes | Direction: supertypes (parents) or subtypes (children) |