file_edit
Modify files in your workspace by replacing specific text strings. Search for unique text patterns and update them with new content, either individually or globally.
Instructions
Edit an existing file in the workspace using search and replace. The old_string must exist in the file and should be unique.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file, relative to the workspace directory | |
| old_string | Yes | Text to replace (must exist and be unique in the file) | |
| new_string | Yes | Replacement text | |
| replace_all | No | Replace all occurrences instead of just the first |