lsp_document_symbols
Retrieve normalized document symbols, such as functions and classes, from a given file path via the Language Server Protocol.
Instructions
Request textDocument/documentSymbol from the LSP server and return normalized symbols.
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": {
"filePath": "<filePath>"
},
"name": "lsp_document_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. |