replace_lines
Modify specific lines in a file by specifying a start and end line index, inserting new content while ensuring correctness via prior file read verification.
Instructions
Replaces the given range of lines in the given file.
Requires that the same range of lines was previously read using the read_file
tool to verify correctness
of the operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | The content to insert. | |
end_line | Yes | The 0-based index of the last line to be deleted. | |
relative_path | Yes | The relative path to the file. | |
start_line | Yes | The 0-based index of the first line to be deleted. |