edit_file_with_context
Edits a file based on instructions for editing the file and instructions for finding contextual information needed to edit the file.
Arguments
Name
Type
Description
Required
path_to_file
string
The path to the file that needs editing, relative to the project root.
find_content_in_file_prompt
prompt
Instructions for finding the desired information in the file.
edit_prompt
prompt
Instructions on how to edit the file.
modify_with_diff
boolean
Whether to edit code with diff or with a full rewrite. Good for additions, less so for deletions or complex refactors.
Returns
Type
Description
string
The path to the edited file.
Example
Last updated