ssh_read_file
Read a UTF-8 text file from a remote host over SSH. Specify a line range to extract only the content you need, with the first 200 lines returned by default.
Instructions
Read a UTF-8 text file from a remote host. offset and limit select a 1-based line range; limit=0 means unlimited. Defaults to first 200 lines.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path on the remote host. | |
| limit | No | Maximum number of lines to return; 0 means unlimited. | |
| offset | No | 1-based starting line (0 is treated as 1). | |
| target | Yes | SSH target in the form user@host[:port]. Uses the local SSH config and keys. |