edit_file
Replace exact strings in files to make targeted code changes without rewriting entire files. Use for precise, surgical edits.
Instructions
Edit a file by replacing an exact string with a new string. Use this for targeted code changes instead of rewriting the whole file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative or absolute path to the file. | |
| new_string | Yes | The replacement string. | |
| old_string | Yes | The exact string to find (case-sensitive, whitespace-sensitive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |