Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.