lsp_document_symbols
Extract all defined symbols like functions, classes, and variables from a source file to analyze code structure and enable navigation.
Instructions
Get all symbols (functions, classes, variables, etc.) defined in a document.
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": {
"file_path": "<file_path>"
},
"name": "lsp_document_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the source file |