ssh_sftp_read_file
Retrieve file contents from a remote server via SFTP. Specify the connection, path, and optional encoding.
Instructions
Read the contents of a file on the remote server using SFTP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | Yes | The session ID returned by ssh_connect | |
| path | Yes | Remote path of the file to read | |
| encoding | No | Encoding to use (e.g. 'utf8', 'base64' for binary files). Default is 'utf8'. |