Write remote file
write_fileWrite UTF-8 text files to a configured domain root, automatically backing up existing files to prevent data loss.
Instructions
Write a UTF-8 text file under a configured domain root. Existing files are backed up by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the configured domain root. | |
| backup | No | Back up existing file before writing. | |
| domain | Yes | Configured domain root to operate under. | |
| content | Yes | UTF-8 text content to write. | |
| dry_run | No | Return what would happen without writing. | |
| server_id | No | Server profile id. Defaults to config.defaultServer. | |
| backup_label | No | Backup label used in the generated filename. |