Skip to content

Missing Tool Result Block for Tool Use ID toolu_01AbmHJypDhKqBF7NKdRPJ6d #5060

@umersai

Description

@umersai

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.6: tool_use ids were found without tool_result blocks
immediately after: toolu_01AbmHJypDhKqBF7NKdRPJ6d. 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.62
  • Feedback ID: f220fea8-bfd9-4661-900c-0e5c70a71ce5

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01AbmHJypDhKqBF7NKdRPJ6d. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at n4.generate (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n    at GP.makeStatusError (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n    at GP.makeRequest (file:///Users/umer/.claude/local/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:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n    at async bG1 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n    at async OvB (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n    at async file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n    at async hL0 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n    at async re (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-08-03T22:10:17.654Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01AbmHJypDhKqBF7NKdRPJ6d. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at n4.generate (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n    at GP.makeStatusError (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n    at GP.makeRequest (file:///Users/umer/.claude/local/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:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n    at async bG1 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n    at async OvB (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n    at async file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n    at async hL0 (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n    at async re (file:///Users/umer/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-08-03T22:11:20.114Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:corebugSomething isn't workingduplicateThis issue or pull request already existsplatform:macosIssue specifically occurs on macOS

    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