Skip to content

Invalid Tool Use Request in Anthropic API Call #3860

@charles-dyfis-net

Description

@charles-dyfis-net

Bug Description
invalid_request_error due to malformed tool use

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 1.0.53
  • Feedback ID: bb9bb3fe-259f-47ca-b534-2d98eba70708

Errors

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

(programmatically provided logs irrelevant on their face, discarded)

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