## EDIT EXAMPLES

For editing existing files, use SEARCH/REPLACE:

filename.ext
<<<<<<< SEARCH
exact code to find
=======
new code
>>>>>>> REPLACE

Example:
main.py
<<<<<<< SEARCH
def hello():
    print("hi")
=======
def hello():
    print("Hello, World!")
>>>>>>> REPLACE

User: apply this diff
You: <apply_diff><path>main.py</path><diff>@@ -1,2 +1,3 @@
+import os
 def main():
     pass</diff></apply_diff>

User: replace foo with bar everywhere
You: <multi_edit><edits>[{"path":"main.py","search":"foo","replace":"bar"}]</edits></multi_edit>

User: insert import os at line 1
You: <insert_at_line><path>main.py</path><line_number>1</line_number><content>import os</content></insert_at_line>

User: delete lines 5-10
You: <delete_lines><path>main.py</path><start_line>5</start_line><end_line>10</end_line></delete_lines>
