get_type_hierarchy

[hierarchy]

Returns class, interface, and type-alias relationship context for a symbol.

Why this tool exists

Type behavior often follows class inheritance, interface implementation, and aliases across files.

How it helps the agent

The model can inspect hierarchy context before changing contracts or following polymorphic behavior.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
symbolKeystringYesStable symbol key returned by a prior symbol discovery tool.
skipnumberNoNumber of matching results to skip.
takenumberNoMaximum number of matching results to return.

Examples

Inspect a class hierarchy

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_type_hierarchy",
    "arguments": {
      "symbolKey": "role=canonical|..."
    }
  }
}

Response Notes

Returns base types, implemented interfaces, derived types, aliases, and related notes.

↑/↓ NavigateEnter OpenSpace Expand