easy_replace
Replaces text in files using fuzzy matching that normalizes whitespace and preserves indentation, with automatic backup for safe code refactoring.
Instructions
Fuzzy string replacement in files with smart matching
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | The absolute path to the file where text replacement should be performed. | |
| old_text | Yes | The text to search for and replace. Can be exact text or pattern. | |
| new_text | Yes | The replacement text to substitute for the old text. | |
| fuzzy_match | No | Whether to use fuzzy matching that normalizes whitespace and handles indentation. Defaults to true for flexible matching. | |
| backup | No | Whether to create a backup file before making changes. Defaults to true for safety. |