ssh-read-lines
Read specific lines from remote files efficiently, with configurable start, end, and maximum line limits.
Instructions
Read specific lines from remote files (token-efficient for large 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": {
"host": "<host>",
"user": "<user>",
"filePath": "<filePath>"
},
"name": "ssh-read-lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Remote server hostname or IP address | |
| user | Yes | SSH username | |
| filePath | Yes | Path to file on remote server | |
| startLine | No | Starting line number (1-based) | |
| endLine | No | Ending line number (optional, reads to end if not specified) | |
| maxLines | No | Maximum lines to read (default: 100) | |
| privateKeyPath | No | Path to SSH private key (optional) | |
| port | No | SSH port (default: 22) |