get_document_symbols
Retrieve all symbols in a Java source file as a hierarchical list of types, methods, fields, and nested types, with locations, kinds, and modifiers.
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. A record's components are listed as its first children.
Types are listed as declared at top level and as members of other types. Local and anonymous classes, those declared in method, field or initializer bodies, are not listed.
maxResults outside 0 to 2000 is INVALID_PARAMETER.
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, 0 to 2000 (default 500) | |
| includePrivate | No | Include private members (default true) |