lb_patch_text_block
Replace a text block in a UTF-8 file using exact matching, with a bounded fuzzy fallback when only one occurrence is expected.
Instructions
Replace a text block in a UTF-8 file. Uses exact replacement first and a bounded fuzzy fallback when one replacement is expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| find_text | Yes | ||
| replace_text | Yes | ||
| expected_matches | No |