Skip to content

Missing Tool Result Block for Tool Use ID toolu_01FWRC6QMpe6bYVfV92CFSwq #4638

@wanderingnature

Description

@wanderingnature

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

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.62
  • Feedback ID: c8265c72-6a04-493a-b7b8-e12de65eaf10

Errors
[{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding tool_result block in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:22:19.758Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding tool_result block in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:37:36.061Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_01FWRC6QMpe6bYVfV92CFSwq. Each tool_use block must have a corresponding tool_result block in the next message."}}\n at n4.generate (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/username/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T03:55:30.413Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    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