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)
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) |