[Bug] Anthropic API Error: Unexpected Tool Use Parsing Failure
Resolved 💬 3 comments Opened Oct 1, 2025 by Chachamaru127 Closed Jan 7, 2026
Bug Description
Githubでも報告されている同様のエラーです。\
https://github.com/anthropics/claude-code/issues/8004
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.0.1
- Feedback ID: 8cb2f796-0427-4167-8c3e-18a4c10ee615
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.14: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Ny5KPVs4XomMp7wqZwKvdj. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTg3bmpajPNJPtvv12jF3\"}\n at B4.generate (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:895:20956)\n at yP.makeStatusError (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n at yP.makeRequest (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async cG1.model (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n at async cG1 (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n at async q2B (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n at async file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n at async ZH0 (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n at async r11 (file:///C:/Users/shuta/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-10-01T06:59:08.959Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗