mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Adjust write_to_file instructions
This commit is contained in:
@@ -52,15 +52,15 @@ Usage:
|
||||
</read_file>
|
||||
|
||||
## write_to_file
|
||||
Description: Request to write content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. Always provide the full intended content of the file, without any truncation. This tool will automatically create any directories needed to write the file.
|
||||
Description: Request to write content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.
|
||||
Parameters:
|
||||
- path: (required) The path of the file to write to (relative to the current working directory ${cwd.toPosix()})
|
||||
- content: (required) The COMPLETE intended content to write to the file. ALWAYS provide the COMPLETE file content in your response, without any truncation. This is NON-NEGOTIABLE. You MUST include ALL parts of the file, even if they haven't been modified. Failure to do so will result in broken code, SEVERELY impacting the user's project. IT IS STRICTLY FORBIDDEN TO OMIT UNMODIFIED FILE CONTENT. YOU ARE NOT ALLOWED TO USE \`// implementation remains unchanged\` OR ANY OTHER SUCH PLACEHOLDERS. The system will crash and burn if this directive is not followed.
|
||||
- content: (required) The content to write to the file. ALWAYS provide the COMPLETE intended content of the file, without any truncation or omissions. You MUST include ALL parts of the file, even if they haven't been modified. IT IS STRICTLY FORBIDDEN TO OMIT CODE WITH \`// implementation remains unchanged\` OR ANY OTHER SUCH PLACEHOLDER.
|
||||
Usage:
|
||||
<write_to_file>
|
||||
<path>File path here</path>
|
||||
<content>
|
||||
Your complete intended file content here
|
||||
Your file content here
|
||||
</content>
|
||||
</write_to_file>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user