Ask a question to get started
Enter to send•Shift+Enter new line
Edit a file, routing to appropriate backend.
edit( self, file_path: str, old_string: str, new_string: str, replace_all: bool = False ) -> EditResult
file_path
str
Absolute file path.
old_string
String to find and replace.
new_string
Replacement string.
replace_all
bool
False
If True, replace all occurrences.