Read a remote file
ssh_read_fileRead a text file from a configured remote host over SFTP, starting at a byte offset and limiting bytes returned for bounded, paginated access.
Instructions
Reads a text file from a host over SFTP. Returns at most maxBytes starting at byte offset; the first line of the result says how much of the file was returned.
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": {
"host": "<host>",
"path": "<path>"
},
"name": "ssh_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Name of a configured host, as returned by ssh_list_hosts | |
| path | Yes | Absolute path, or one relative to the login directory | |
| offset | No | Byte offset to start reading at | |
| maxBytes | No |