get_file_folded
Returns symbols with signatures and JSDoc but omits function bodies, providing a folded structural view of a file within a token budget.
Instructions
STEP 3 of token-efficient exploration. Returns all symbols with signatures + JSDoc but NO function bodies — folded view under a token budget. Ideal when you need to understand a file structurally without reading every implementation. Falls back to truncated:true if budget exceeded. AST-based, no API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root (e.g., "src/tools/searchCode.ts") | |
| token_budget | No | Max tokens for returned signatures+JSDoc (default: 4000). Symbols beyond the budget are dropped, truncated=true flagged. |