Write file
write_fileCreate or overwrite files securely within an allowed directory, with options to create parent folders and append content.
Instructions
Create or overwrite a file inside an allowed root. createDirectories mkdir -p the parent. append adds to an existing file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or ~ path to write | |
| append | No | ||
| content | Yes | File contents (text or base64) | |
| encoding | No | How to interpret content | utf8 |
| createDirectories | No |