ssh_read_file
Read a remote UTF-8 file via SFTP. Handles up to 5 MiB, truncating larger text and rejecting binary content. Specify a configured server and path to retrieve file contents.
Instructions
Read a remote UTF-8 regular file through SFTP on the selected server, default 1 MiB, maximum 5 MiB. Oversized text is truncated and binary content is rejected. SSH credentials are private server-side configuration. Never ask the user for a password. Use ssh_list_servers when the user has not supplied an exact configured alias.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| server | Yes | Exact configured server alias returned by ssh_list_servers. | |
| maxBytes | No |