ssh_read_file
Read a specific range of lines from a remote file via SSH, using offset and limit parameters to efficiently retrieve only the needed portion.
Instructions
Read lines from a file on the remote server.
Efficiently reads only the requested range using sed, so large files
are safe to read partially. Returns line-numbered content similar to
cat -n output.
Args: path: Absolute or relative path to the file on the remote. offset: Line number to start reading from (0-based). limit: Maximum number of lines to return. host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| offset | No | ||
| limit | No | ||
| host | No |