[Bug] Anthropic API Error: Missing Tool Result Block
Resolved 💬 9 comments Opened Oct 4, 2025 by macOS26 Closed Jan 13, 2026
Bug Description
'/Users/toddbruss/Library/Mobile
Documents/com~apple~CloudDocs/Documents/GitHub/UFOEmoji2020/UFO Emoji/UFO
Emoji/Assets.xcassets/GameGold/gold.imageset/gold.pdf'
⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use
ids were found without tool_result blocks immediately after:
toolu_01HAK5RZxdRG12H4dWyHEcY8, toolu_01Srj2buxKdACTSRdWg5sHRr. Each tool_use block
must have a corresponding tool_result block in the next
message."},"request_id":"req_011CTmShgKJcqRdu1MvHZUC6"}
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.5
- Feedback ID: 7ef95d83-1b25-4c7d-bec8-9825513956ac
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.4: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01HAK5RZxdRG12H4dWyHEcY8, toolu_01Srj2buxKdACTSRdWg5sHRr. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTmSeY1ekVk9HmaLDFA7X\"}\n at B4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:895:18688)\n at yP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n at yP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async E2B.dG1.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n at async dG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n at async E2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n at async ZH0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n at async r11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-10-04T03:24:22.090Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.4: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01HAK5RZxdRG12H4dWyHEcY8, toolu_01Srj2buxKdACTSRdWg5sHRr. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTmShgKJcqRdu1MvHZUC6\"}\n at B4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:895:18688)\n at yP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n at yP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async E2B.dG1.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n at async dG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n at async E2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n at async ZH0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n at async r11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-10-04T03:25:04.709Z"}]
Seems to do this all the time now.
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗