[BUG] LSP (clangd) tool's workspaceSymbol operation can't pass a query string — schema is missing the parameter
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
▎ The LSP tool exposes a workspaceSymbol operation documented as "Search for symbols across the entire workspace", but the schema accepts only filePath, line, character
▎ (with additionalProperties: false). LSP's workspace/symbol request requires a query: string parameter — there's no way to pass it through the wrapper.
▎
▎ Behaviorally, the cursor line/character is completely ignored — output is byte-identical regardless of cursor position, returning ~100 alphabetical symbols (mostly
▎ stdlib / OpenCV / Eigen / gtest), hiding any user code symbols.
▎
▎ All other LSP operations (goToDefinition, findReferences, hover, documentSymbol, incomingCalls etc.) work as expected.
▎
▎ Suggested fix: add query: string to the schema for workspaceSymbol (and ideally make line/character optional for that operation since they have no role).
What Should Happen?
claude should be able to query (fuzzy search) clangd workspaceSymbol
Error Messages/Logs
Steps to Reproduce
ask claude to use clangd workspaceSymbol
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.123 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗