safe_write_file
Overwrite a text file only if its SHA-256 hash matches the value previously read, preventing accidental overwrites of modified files.
Instructions
Overwrite an existing text file only if its SHA-256 still matches the value previously read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| server_id | No | ||
| expected_sha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||