Skip to main content

patch_file_tool

Function patch_file_tool 

Source
pub fn patch_file_tool() -> ToolDef
Expand description

Create the patch_file tool.

Finds the exact occurrence of old_string in the file and replaces it with new_string. Errors if the string is not found or is ambiguous (multiple occurrences).