Skip to main content

Module edit_file

Module edit_file 

Source
Expand description

EditFile tool for making targeted edits to files

This tool performs surgical string replacements in files without rewriting the entire content. It’s designed for making precise edits like fixing bugs, updating function names, or modifying specific lines.

§Safety

The tool validates that old_string exists and is unique (unless replace_all is true) to prevent accidental modifications.

Structs§

EditFileTool
Tool for editing files with string replacement