Write a file to a device
pi_file_writeCreate or overwrite one file on a remote SSH device relative to $HOME, creating missing parent directories and accepting UTF-8 or base64 content up to 16 MB.
Instructions
Create or overwrite one file on the remote device relative to $HOME, creating missing parent directories. content may be UTF-8 text or base64 and is limited to 16 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the authenticated user's remote $HOME directory. | |
| content | Yes | File content (UTF-8 or base64). | |
| encoding | No | utf8 | |
| device_id | Yes | IP address, hostname, MAC address, or device identifier of the target Raspberry Pi / SSH device. |