ssh_read_file
Read remote files over SFTP with optional line offset and limit, useful for inspecting logs and large config files.
Instructions
Read the contents of a remote file over SFTP. Supports offset lines and line limits for inspecting log files and large config files.
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": {
"serverId": "<serverId>",
"path": "<path>"
},
"name": "ssh_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The remote absolute path to the file (e.g. /etc/nginx/nginx.conf or /var/log/syslog). | |
| maxLines | No | Optional maximum number of lines to return. | |
| serverId | Yes | The ID of the configured target server. | |
| offsetLines | No | Optional starting line index (0-indexed). |