[Bug] Anthropic API Error: Mismatched tool_use_id in advisor_tool_result blocks
Status Closed — duplicate
Reported on v2.1.222
Maintainer reply None cached
Activity 1 comment · opened Aug 5, 2026 · closed Aug 15, 2026
Bug Description
API Error: 400 messages.11.content.0: unexpected tool_use_id found in advisor_tool_result blocks: srvtoolu_01YZhtf96VG9megEQH3CWmyP. Each advisor_tool_result block must have a corresponding server_tool_use block before it.. Cannot proceed with session at all.
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.222
- Feedback ID: 9270bd5e-6580-47b2-b426-2640f5365a27
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.11.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_01YZhtf96VG9megEQH3CWmyP. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdkJr1LXXwtSoW5S7JjK9\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:40:49895)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-05T21:26:05.495Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.11.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_01YZhtf96VG9megEQH3CWmyP. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdkJxAsRwkZd9rjabMVSJ\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:40:49895)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-05T21:27:27.075Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.11.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_01YZhtf96VG9megEQH3CWmyP. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdkK62kFmT3BzgArfravz\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:40:49895)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-05T21:29:13.662Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.11.content.0: unexpected `tool_use_id` found in `advisor_tool_result` blocks: srvtoolu_01YZhtf96VG9megEQH3CWmyP. Each `advisor_tool_result` block must have a corresponding `server_tool_use` block before it.\"},\"request_id\":\"req_011CdkKMuFkMKLCFy7oqEw9Y\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:40:49895)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:80:7690)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-05T21:32:48.932Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗