Adjust write_to_file instructions

This commit is contained in:
Saoud Rizwan
2024-10-17 04:13:15 -04:00
parent 24292759b3
commit fa32dcc1c8

View File

@@ -52,15 +52,15 @@ Usage:
</read_file> </read_file>
## write_to_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: Parameters:
- path: (required) The path of the file to write to (relative to the current working directory ${cwd.toPosix()}) - 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: Usage:
<write_to_file> <write_to_file>
<path>File path here</path> <path>File path here</path>
<content> <content>
Your complete intended file content here Your file content here
</content> </content>
</write_to_file> </write_to_file>