read_file_outline
Generate a file's symbol outline with line ranges and adjustable depth, reducing token usage while providing structured code context.
Instructions
File outline: symbols with line ranges (~100 tokens). Use depth=1 for top-level only (~80t vs ~450t on complex files).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_file_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Relative path (also accepts file_path) | |
| depth | No | Symbol depth: 1 = top-level only (no nested consts/functions). Reduces ~450t to ~80t for complex files. | |
| file_path | No | Alias for file |