get_file_outline
Lists top-level symbols and imports/exports of a file to enable efficient code exploration without reading the entire file.
Instructions
STEP 2 of token-efficient exploration. Lists top-level symbols (functions/classes/types/hooks) with line ranges + imports/exports. ~200 tokens. After this, call get_file_folded for signatures+JSDoc, or get_symbol for full source of ONE symbol. NEVER Read the whole file — you have better tools. Uses AST, no API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root (e.g., "src/tools/searchCode.ts") |