[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_
4 Comments
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
duplicates https://github.com/anthropics/claude-code/issues/17149
It this already released?
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.