get_class
Retrieve class definitions and specific methods without reading entire files to reduce token usage by 80%+ in code navigation.
Instructions
⭐ PREFERRED OVER Read: Get class definition without reading the entire file. Optionally filter specific methods. Saves 80%+ tokens vs reading full files. Use this when you need class structure or specific class methods.
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": {
"className": "<className>"
},
"name": "get_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | The name of the class to retrieve | |
| methods | No | Optional: specific method names to include. If omitted, returns all methods. | |
| filePath | No | Optional: specific file path if known |