Read Remote Text File
ssh_readRead remote text files over SSH with line numbers, EOL detection, and a SHA-256 hash for optimistic locking. Large files are sliced on the remote host; binary files are rejected.
Instructions
Read a remote text file with line numbers, EOL detection, and SHA-256 content hash (for optimistic locking in ssh_edit). Large files (>2 MiB) are sliced on the remote host without downloading the entire file. Binary files are rejected (use ssh_download instead).
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": {
"target": "<target>",
"path": "<path>"
},
"name": "ssh_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Explicit remote absolute path (e.g. /etc/nginx/nginx.conf or C:\Services\app.json) or home-relative ~/... path. Bare relative paths are rejected. | |
| target | Yes | SSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target. | |
| end_line | No | 1-based inclusive end line | |
| max_lines | No | Maximum lines to return (default 800, max 2000) | |
| start_line | No | 1-based inclusive start line |