inheritance_chain
Trace a class's ancestors and descendants by name across the codebase index, optionally filtered to one repository, to map inheritance relationships before refactoring.
Instructions
Returns the inheritance chain for a class: ancestors (what it extends) and descendants (what extends it). Searched by class name across the index.
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_name": "<class_name>"
},
"name": "inheritance_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Filter to a specific repository (as shown in list_repos) | |
| class_name | Yes | Class name to analyze |