get_shape
Retrieve the complete shape (methods and properties) of a class, interface, or typed variable, showing all members including inherited ones via the extends chain.
Instructions
Get the shape (methods + properties) of a CLASS, INTERFACE, or typed variable.
Shows all members including inherited ones via EXTENDS chain. For variables, follows INSTANCE_OF to find the type, then returns its shape.
Use this to understand:
"What methods does GraphBackend have?" → get_shape(target="GraphBackend")
"What can I call on this variable?" → get_shape(target="db", file="handlers.ts")
"What does this interface require?" → get_shape(target="NodeRecord")
Returns: members (methods + properties), extends chain, implements list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | CLASS, INTERFACE, or variable name (or semantic ID) | |
| file | No | File path to disambiguate (optional) |