ssh_read_file
Read a remote text file over SFTP using a host ID, with 1-based start line and bounded output. Use it to inspect specific file sections without transferring whole files.
Instructions
Read a remote text file through SFTP with 1-based startLine and bounded output. Use ssh_download_file for binary data.
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": {
"hostId": "<hostId>",
"path": "<path>"
},
"name": "ssh_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| hostId | Yes | Required stable host ID returned by ssh_list_hosts. Names are not accepted. | |
| startLine | No |