[BUG] Edit Tool keeps throwing errors

Resolved 💬 3 comments Opened Mar 7, 2026 by machinae Closed Mar 10, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Every time Claude tried to edit a file it runs into the following error

  ⎿  Read 32 lines
  ⎿  Error: InputValidationError: Edit failed due to the following issue:
     The parameter `replace_all` type is expected as `boolean` but provided as `string`
  ⎿  Error: InputValidationError: Edit failed due to the following issue:
     The parameter `replace_all` type is expected as `boolean` but provided as `string`

What Should Happen?

It should edit the file

Error Messages/Logs

The parameter `replace_all` type is expected as `boolean` but provided as `string`

Steps to Reproduce

I'll cloud code to edit a file.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.71 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗