fs_edit
Replace a specific string in a file; fails if not found. Use replace_all for every occurrence.
Instructions
Replace a string in a file. Fails if old_string is not found. Set replace_all=true to replace every occurrence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| path | Yes | ||
| new_string | Yes | ||
| old_string | Yes | ||
| replace_all | No | Replace all occurrences (default: first only) |