[Bug] Anthropic API Error: Tool result block missing corresponding tool use block
Status Closed — duplicate
Reported on v2.1.224
Maintainer reply None cached
Activity 1 comment · opened Aug 7, 2026 · closed Aug 15, 2026
Bug Description
API Error: 400 messages.3.content.0: unexpected tool_use_id found in advisor_tool_result blocks: srvtoolu_012amofn49gz3y4oQq1vtkWH. Each advisor_tool_result block must have a corresponding server_tool_use block before it.
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.224
- Feedback ID: 70637cb7-26c1-41c1-95af-40f108fb8055
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_012amofn49gz3y4oQq1vtkWH. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdoG7XKADQpjCwocZ56pp\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:40:49770)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-07T10:52:01.263Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_012amofn49gz3y4oQq1vtkWH. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdoG9HGs3ris2n7Dyu5aT\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:40:49770)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-07T10:52:25.050Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_012amofn49gz3y4oQq1vtkWH. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdoGWE9gWfAaEEbuyP79e\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:40:49770)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-07T10:57:09.041Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_012amofn49gz3y4oQq1vtkWH. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdoGZ6WtFgsTdbSWXaDqf\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:40:49770)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-07T10:57:48.017Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗