sassy_edit_block
Find and replace exact text in a file with surgical precision. Uses fuzzy fallback, previews changes, and snapshots the original for safety.
Instructions
Surgical file edit: find old_text and replace with new_text.
Exact match preferred; fuzzy fallback with diff reporting
Fails if multiple exact matches found (provide more context)
Preserves file encoding and line endings
Returns a preview of the change with surrounding context
Refuses edits on protected paths
Snapshots existing content to DELETE/ before applying
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| new_text | Yes | ||
| old_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |