get_class_hierarchy
Display the inheritance hierarchy for a class, showing all parent and child classes and their extends/implements relations.
Instructions
Show the inheritance hierarchy for a class (extends/implements tree).
Args: class_id: Class node ID to analyze. direction: "up" (parents/supertypes), "down" (children/subtypes), "both". max_depth: Max traversal depth (default 5, max 10). project: Project name.
Returns: Inheritance tree showing parent and child classes with relation 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": {
"class_id": "<class_id>"
},
"name": "get_class_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| class_id | Yes | ||
| direction | No | both | |
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |