[BUG] LSP (clangd) tool's workspaceSymbol operation can't pass a query string — schema is missing the parameter

Status Fixed / completed
Reported on v2.1.123
Maintainer reply None cached
Activity 4 comments · opened Apr 29, 2026 · closed Apr 29, 2026

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_

View original on GitHub ↗

4 Comments

github-actions[bot] · 5 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/17149
  2. https://github.com/anthropics/claude-code/issues/30948

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

mlelas · 5 months ago
detinho · 5 months ago

It this already released?

github-actions[bot] · 3 months ago

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.