file_outline
Get a structural outline of any source file, listing all functions, classes, interfaces, types, and enums with line ranges. Understand file structure quickly before diving into specific regions.
Instructions
Get a structural outline of a single file: every function, class, interface, type, enum, and top-level const with line ranges. Shows both exported and non-exported symbols. Use to understand file structure before reading a specific region.
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": {
"path": "<path>"
},
"name": "file_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a source file | |
| exportedOnly | No | Only show exported symbols (default false = show all) |