get_document_symbols
Retrieve all symbols defined in a document via LSP, including functions, classes, and variables. Use outline format for a compact markdown overview optimized for LLM consumption.
Instructions
Get all symbols defined in a document via LSP (functions, classes, variables, methods, etc.). Returns a hierarchical DocumentSymbol tree or flat SymbolInformation list depending on server support. Use this to get a structural overview of a file. Pass format: "outline" for compact markdown output (name [Kind] :line) optimized for LLM consumption — ~5x fewer tokens than JSON for the same structural information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| file_path | Yes | ||
| language_id | No |