file_edit
Modify file content by replacing specific text strings within workspace files using search and replace functionality.
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 |