read_code_skeleton
Read a source code file to get its structural skeleton, saving 70-90% context tokens. Start here for files over 100 lines to efficiently understand imports, types, and function signatures.
Instructions
Reads a source code file and returns ONLY its structural skeleton (imports, type definitions, class declarations, function signatures with parameter types and return types). Internal logic is replaced with '/* ... [omitted by ContextGC] ... */'. Use this tool FIRST when exploring files larger than 100 lines to save 70-90% context tokens. After reviewing the skeleton, use read_function_body to expand specific functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source code file | |
| focusFunction | No | Name of function/method to keep full body for. Use when you need to see a specific implementation. | |
| focusLine | No | Line number to focus on — keeps the containing function's body intact. | |
| maxOutputLines | No | Maximum number of lines in the output. Default: 500. |