fs_write
Write UTF-8 text to a new file or append to an existing one, with an error on conflict to prevent data loss.
Instructions
Write UTF-8 bytes to a file.
Args:
path: Destination file.
content: The text to write.
if_exists: One of "error" (default — refuse), "append"
(add to end). Overwriting an existing file is a T2 op
— use fs_overwrite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| if_exists | No | error |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||