Read remote file
read_fileReads UTF-8 text files from a configured domain root via SFTP, enabling secure retrieval of file contents for Xserver-hosted sites.
Instructions
Read a UTF-8 text file under a configured domain root over SFTP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the configured domain root. | |
| domain | Yes | Configured domain root to operate under. | |
| server_id | No | Server profile id. Defaults to config.defaultServer. |