[DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.

Resolved 💬 3 comments Opened Jan 8, 2026 by fyeeme Closed Jan 12, 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?

LSP for java not found

 Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.

 ❯ 1. Default (recommended) ✔  Sonnet 4.5 · Best for everyday tasks
   2. Opus                     Opus 4.5 · Most capable for complex work
   3. Haiku                    Haiku 4.5 · Fastest for quick answers

start claude with debug mode

and ask code to find method refenerenc

 Read(pitpat-common/pitpat-data/src/main/java/com/service/impl/ServiceImpl.java)
  ⎿  Read 67 lines

⏺ Now let me use LSP to find all references to this specific method:

⏺ LSP(operation: "findReferences", symbol: "findById", in: "src/main/java/com/service/Service.java")
  ⎿  No LSP server available for file type: .java

⏺ Let me search more comprehensively for calls to findById in the context of UserRunRoute:

⏺ Bash(find . -name "*.java" -type f -exec grep -l "User" {} \; | xargs grep -n "\.findById" 2>/dev/null | grep -v ".class")
  ⎿  ./src/test/java/com/ConfigPopManagerTest.java:127:        UserDo user = UserService.findById(id);

lookup log and see :


2026-01-08T19:06:37.125Z [DEBUG] MCP server "ide": Successfully connected to ws-ide server in 40ms
2026-01-08T19:06:37.126Z [DEBUG] MCP server "ide": Connection established with capabilities: {"hasTools":true,"hasPrompts":false,"hasResources":false,"serverVersion":{"name":"Claude Code VSCode MCP","version":"2.1.1"}}
2026-01-08T19:06:37.146Z [DEBUG] Stream started - received first chunk
2026-01-08T19:06:37.893Z [DEBUG] Successfully refreshed marketplace: claude-plugins-official
2026-01-08T19:06:37.893Z [DEBUG] Plugin autoupdate: checking installed plugins
2026-01-08T19:06:37.900Z [DEBUG] Using provided version for jdtls-lsp@claude-plugins-official: 1.0.0



2026-01-08T19:08:48.549Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-08T19:08:48.550Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-08T19:08:48.551Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-08T19:08:48.551Z [DEBUG] [API:auth] OAuth token check starting
2026-01-08T19:08:48.551Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-08T19:08:48.551Z [DEBUG] [API:auth] OAuth token check starting
2026-01-08T19:08:48.552Z [DEBUG] [API:auth] OAuth token check complete
2026-01-08T19:08:48.552Z [DEBUG] [API:auth] OAuth token check complete
2026-01-08T19:08:49.287Z [DEBUG] Stream started - received first chunk
2026-01-08T19:08:49.509Z [DEBUG] Stream started - received first chunk
2026-01-08T19:09:37.159Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-08T19:09:37.160Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-08T19:09:37.160Z [DEBUG] [API:auth] OAuth token check starting
2026-01-08T19:09:37.161Z [DEBUG] [API:auth] OAuth token check complete
2026-01-08T19:09:37.174Z [DEBUG] Getting matching hook commands for PostToolUse with query: Bash
2026-01-08T19:09:37.175Z [DEBUG] Found 0 hook matchers in settings
2026-01-08T19:09:37.175Z [DEBUG] Matched 0 unique hooks for query "Bash" (0 before deduplication)
2026-01-08T19:09:37.184Z [DEBUG] MCP server "ide": Calling MCP tool: getDiagnostics
2026-01-08T19:09:37.185Z [DEBUG] LSP Diagnostics: getLSPDiagnosticAttachments called
2026-01-08T19:09:37.185Z [DEBUG] LSP Diagnostics: Checking registry - 0 pending
2026-01-08T19:09:37.185Z [DEBUG] Hooks: Found 0 total hooks in registry
2026-01-08T19:09:37.185Z [DEBUG] Hooks: checkForNewResponses returning 0 responses
2026-01-08T19:09:37.271Z [DEBUG] MCP server "ide": Tool 'getDiagnostics' completed successfully in 87ms
2026-01-08T19:09:37.294Z [DEBUG] Tool search disabled: MCPSearchTool is not available (may have been disallowed via disallowedTools).
2026-01-08T19:09:37.305Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-08T19:09:37.305Z [DEBUG] [API:auth] OAuth token check starting
2026-01-08T19:09:37.305Z [DEBUG] [API:auth] OAuth token check complete
2026-01-08T19:09:38.372Z [DEBUG] Stream started - received first chunk
2026-01-08T19:09:40.892Z [DEBUG] Stream started - received first chunk
2026-01-08T19:09:48.987Z [DEBUG] Getting matching hook commands for Stop with query: undefined
2026-01-08T19:09:48.987Z [DEBUG] Found 1 hook matchers in settings
2026-01-08T19:09:48.988Z [DEBUG] Matched 1 unique hooks for query "no match query" (1 before deduplication)
2026-01-08T19:09:49.004Z [DEBUG] Hook output does not start with {, treating as plain text

What Should Happen?

LSP should work

Error Messages/Logs

Steps to Reproduce

  1. install plugin "jdtls-lsp"
  2. open java project with vscode
  3. run claude --debug
  4. ask "Find usages of findById"

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.1

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗