get_document_symbols
Extract symbols like types, methods, and fields from Java source files to analyze code structure and navigation.
Instructions
Get all symbols (types, methods, fields) in a source file.
USAGE: Provide a file path to get all symbols in that file OUTPUT: Hierarchical list of all types, methods, fields, and nested types
Returns symbols with their locations, kinds, and modifiers.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to source file | |
| maxResults | No | Maximum symbols to return (default 500) | |
| includePrivate | No | Include private members (default true) |