edit_file
Edit a file based on provided instructions.
Arguments
Name | Type | Description | Required |
---|---|---|---|
path_to_file | string | The path to the file that needs editing, relative to the project root. | |
edit_prompt | string | Instructions on how to edit the file. | |
modify_with_diff | boolean | Whether to edit code with diff or with a full rewrite. Useful for additions, less so for deletions or complex refactors. |
Returns
Type | Description |
---|---|
string | The path to the edited file. |
Example
Last updated