find_and_replace
Search and replace text across multiple files using regex or plain text. Preview changes before applying, with options for case sensitivity, whole words, and automatic backup.
Instructions
Find and replace text across multiple files with preview option
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchPattern | Yes | Text or regex pattern to search for | |
| replacement | Yes | Replacement text | |
| files | No | Specific files to process | |
| filePattern | No | File pattern to match (e.g., "**/*.ts") | |
| regex | No | Treat search pattern as regex | |
| caseSensitive | No | Case sensitive search (default: true) | |
| wholeWord | No | Match whole words only | |
| preview | No | Preview changes without applying them | |
| backup | No | Create backup files before changes |