fast_edit_block
Replace exact text blocks in files with safety controls for backups, previews, and match validation.
Instructions
Precise block editing: safely replace exact matches (desktop-commander style)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file to edit | |
| old_text | Yes | Exact existing text to match (include minimal context) | |
| new_text | Yes | Replacement text | |
| expected_replacements | No | Expected number of replacements (safety guard) | |
| backup | No | Create a backup | |
| word_boundary | No | Enforce word boundaries (prevents partial matches) | |
| preview_only | No | Preview only (don’t modify the file) | |
| case_sensitive | No | Match case sensitively |