write_file
Write content to files on a remote server, with safety restrictions limiting writes to /tmp and /var/tmp in safe mode and blocking system directories for security.
Instructions
Write content to a file. This is a dangerous operation. In safe mode, only writes to /tmp and /var/tmp are allowed. System directories (/etc, /bin, /usr, etc.) are always blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| path | Yes | Absolute path to the file to write | |
| content | Yes | Content to write to the file |