ssh_read_file
Read a text file from a remote server over SSH and get its contents as a string. For binary or large files, use the download tool instead.
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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_name": "<server_name>",
"remote_path": "<remote_path>"
},
"name": "ssh_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | Max file size in bytes (default: 1MB) | |
| remote_path | Yes | Remote file path to read | |
| server_name | Yes | Server name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||