ssh_read_file
Read text file contents from a remote server over SSH. Returns file as string for quick inspection without downloading.
Instructions
Read a text file from a remote server.
Returns the file contents as a string. For binary or large files, use ssh_download instead.
EXAMPLES:
ssh_read_file("proxmox", "/etc/hostname")
ssh_read_file("truenas", "/var/log/messages", max_size=5000000)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_name | Yes | Server name | |
| remote_path | Yes | Remote file path to read | |
| max_size | No | Max file size in bytes (default: 1MB) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||