[Bug] Anthropic API Error: Missing corresponding tool_use block for tool_result
Resolved 💬 2 comments Opened Dec 9, 2025 by jfi Closed Dec 10, 2025
Bug Description
Attempted to send the following message and got an API error response
OK, any progress?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.48.content.1: unexpected
tool_use_id found in tool_result blocks: toolu_019ETtGZEhTBXgWPVsdVnXMh. Each tool_result block must have a
corresponding tool_use block in the previous message."},"request_id":"req_011CVw2irzCqYx77e329n3GK"}
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.61
- Feedback ID: a6b7d52f-d303-4016-80de-776396b9b012
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.48.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_019ETtGZEhTBXgWPVsdVnXMh. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CVw2h61VEkMCFi3aopkC2\"}\n at generate (/$bunfs/root/claude:109:10367)\n at makeRequest (/$bunfs/root/claude:1237:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-09T11:25:04.776Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.48.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_019ETtGZEhTBXgWPVsdVnXMh. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CVw2irzCqYx77e329n3GK\"}\n at generate (/$bunfs/root/claude:109:10367)\n at makeRequest (/$bunfs/root/claude:1237:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-09T11:25:28.862Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗