file_outline
Generate a compact skeleton of any file, showing every function, type, and constant with line ranges, to understand large codebases at a glance.
Instructions
Return a token-cheap skeleton of a file: every function, type, method, class, and constant as its signature line with the body collapsed, nested by containment, with byte-precise 1-based line ranges. Use it to understand a large file's shape in one call without reading it — a 2000-line file becomes a few hundred tokens. Symbols come from the language server when available, falling back to the tree-sitter topology index when the server is cold or does not cover the file (source is annotated). Set include_docs=false to omit leading doc-comment lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Absolute path, file:// URI, or workspace-relative path of the file to outline. | |
| include_docs | No | Prepend the first line of each symbol's leading doc comment (// /// /** # styles). Default true. |