Skip to content

Missing Tool Result Block for Tool Use ID toolu_01QmY7N5YF6kBRp9Ak7hJpTM #2802

@Annomy111

Description

@Annomy111

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.3:
tool_use ids were found without tool_result blocks immediately after:
toolu_01QmY7N5YF6kBRp9Ak7hJpTM. Each tool_use block must have a corresponding tool_result
block in the next message."}}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.38
  • Feedback ID: b90b798e-f195-4a09-98b9-9de2a86e2276

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at WI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:701:3921)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n    at SX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n    at K_ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n    at O9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-01T14:57:20.990Z"},{"error":"Error: Tool mcp__fetch__fetch not found\n    at bO2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1952:5596)\n    at ZU (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at EP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42556)\n    at zP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38105)\n    at r$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38033)\n    at LU (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37887)\n    at zJ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:34977)\n    at f5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:4822)\n    at DB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:32233)\n    at A.Q.updateContainer (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:71:1835)","timestamp":"2025-07-01T14:57:23.069Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:481:14)\n    at Socket.emit (node:events:513:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-01T14:57:24.300Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01QmY7N5YF6kBRp9Ak7hJpTM. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at J5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:12578)\n    at Oq.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1329:2100)\n    at Oq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1329:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async ZL2.XA1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1695:23046)\n    at async XA1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1695:12633)\n    at async ZL2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1695:22894)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1695:18023\n    at async AAA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1695:5121)\n    at async iu (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1695:17993)","timestamp":"2025-07-01T14:57:35.737Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions