Edit File
edit_fileReplace old_string with new_string in a project file. old_string must match the current content exactly (including whitespace) and be unique unless replace_all is set. Prefer this over write_file for changes to existing files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| new_str | No | ||
| old_str | No | ||
| projectId | Yes | ||
| new_string | No | ||
| old_string | No | ||
| replace_all | No | ||
| expected_version | No |