sage_write_file
Create or update a file with append and overwrite. Returns confirmation without echoing content, saving tokens.
Instructions
Create or update a file. Returns bytes/lines/sha256 confirmation instead of echoing the content back — saves the whole file's tokens. Existing files require overwrite=true (a snapshot is taken first so it is reversible).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to write | |
| append | No | Append instead of replace | |
| content | Yes | Full file content | |
| overwrite | No | Allow replacing an existing file |