code_types
Show a type's inheritance tree, including implementers, subclasses, and base types, and mark which types declare a given member to find overrides before changes.
Instructions
Shows a type's whole inheritance tree in one call: every type that implements or derives from it (directly or through others) and every base type and interface it builds on, each with kind, file and line. With memberName it also marks which of those types declare that member, which finds the implementations and overrides of a method. WHEN TO USE: before changing an interface, base class or virtual member (every implementer and subclass is affected), or to answer 'who implements IFoo' or 'what does this class inherit'. For call sites use code_callers; when you do not know the exact type name use code_search first. HOW IT MATCHES: from the base lists in the syntax index, by simple name and exact letter case (no symbol resolution). Several types with the same name are merged and named in a note; a base type from a library is shown as not in the index; a name that is not in the index is an error. Very deep or wide trees stop at a limit and say so. Reads only.
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": {
"workspace": "<workspace>",
"typeName": "<typeName>"
},
"name": "code_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the code guide first in the result. Use on your first code call, or when told it changed. | |
| typeName | Yes | Exact type name, letter case included, e.g. 'IAuditStore' or 'OrderService'. A namespace prefix or type arguments ('Repo<T>') are ignored. | |
| direction | No | Optional: 'both' (default), 'derived' (implementers and subclasses only) or 'bases' (what it builds on only) | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) | |
| memberName | No | Optional: a member name such as 'UsageAsync'; each listed type that declares it is marked, and a note counts them. | |
| includeTests | No | Optional: include derived types in test folders (default true) |