[Bug] Anthropic API Error: tool_reference blocks unsupported on claude-haiku-4-5-20251001

Resolved 💬 6 comments Opened Dec 21, 2025 by cal88 Closed Feb 14, 2026

Bug Description
MCPSearch(Search MCP tools: "select:mcp__brave-search__brave_web_search")
⎿  Found 1 tool
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","mess
age":"'claude-haiku-4-5-20251001' does not support tool_reference blocks.
This feature is only available on Claude Sonnet 4+, Opus 4+, and newer
models."},"request_id":"req_011CWLiLe4Txd11tdhXj7VH4"}

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.0.75
  • Feedback ID: 7e49c14d-b1ef-4f67-827e-5156f4d345c2

Errors

[{"error":"MaxFileReadTokenExceededError: File content (31501 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at CdB (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-21T01:48:27.600Z"},{"error":"MaxFileReadTokenExceededError: File content (35792 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at CdB (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-21T01:48:28.516Z"},{"error":"MaxFileReadTokenExceededError: File content (31501 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at CdB (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-21T01:48:28.873Z"},{"error":"MaxFileReadTokenExceededError: File content (31501 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at CdB (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async tg5 (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:2207:17438)","timestamp":"2025-12-21T01:48:29.754Z"},{"error":"MaxFileReadTokenExceededError: File content (35792 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at CdB (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async tg5 (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:2207:17438)","timestamp":"2025-12-21T01:48:29.807Z"},{"error":"MaxFileReadTokenExceededError: File content (35792 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at CdB (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1018:12169)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1027:996)\n    at async file:///home/cal88/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:3490:1459","timestamp":"2025-12-21T01:48:42.466Z"},{"error":"MaxFileReadTokenExceededError: File content (31501 tokens) e

Note: Error logs were truncated.

View original on GitHub ↗

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