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