[Bug] Anthropic API Error: Invalid Tool Call Response (400)
Resolved 💬 3 comments Opened Nov 27, 2025 by em Closed Nov 30, 2025
Bug Description
400 tool call, still a bug, can't believe it
Environment Info
- Platform: linux
- Terminal: ghostty
- Version: 1.0.115
- Feedback ID: f8bf0ce1-9e2c-4224-9618-0439eec2fdc7
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.63: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Qimu3Y5DwauzoDUuBv2DmZ. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CVXsgwwRSCBiN5tiU4kjB\"}\n at X4.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:992:2412)\n at nT.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1009:2131)\n at nT.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1009:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async gY1.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1917:29798)\n at async gY1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1917:18101)\n at async zIB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1917:29625)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1917:24438\n at async Bq0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1917:4362)\n at async w01 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1917:24408)","timestamp":"2025-11-27T05:53:21.766Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗