ssh_read_remote_file
Read a remote text file over SFTP from a configured server, returning its path, byte size, and raw content; refuses oversized or binary files.
Instructions
Read a remote text file via SFTP. Returns "# ( bytes)" then the raw content. Files above limits.maxReadFileBytes (default 2 MB) or binary files are refused (use ssh_exec with head/tail/sed -n, or ssh_download).
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": "<server>",
"remote_path": "<remote_path>"
},
"name": "ssh_read_remote_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server alias from config.json (case-insensitive). Known aliases: (none configured) | |
| remote_path | Yes | Remote file path to read |