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.
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": {
"file": "<file>"
},
"name": "get_file_folded"
}
}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. |