edit_file
Replace a specified string with new text in a file, choosing to update all occurrences or only the first match.
Instructions
Replace old_string with new_string in file. replace_all: all (default) or first only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| new_string | Yes | ||
| old_string | Yes | ||
| replace_all | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |