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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"find_text": "<find_text>",
"replace_text": "<replace_text>"
},
"name": "lb_patch_text_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| find_text | Yes | ||
| replace_text | Yes | ||
| expected_matches | No |