checked_write_to_file
Ensures file integrity by requiring a pre-read before writing, enforcing checks to prevent unauthorized modifications. Ideal for secure file edits with explicit read-diff-write workflows.
Instructions
Write to a file, requiring it to have been read first if it exists
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content to write to the file | |
line_count | Yes | Number of lines in the content | |
path | Yes | Path to write the file to |