ssh_read_file
Read a UTF-8 text file from a remote host over SSH. Specify a line range to extract only the content you need, with the first 200 lines returned by default.
Instructions
Read a UTF-8 text file from a remote host. offset and limit select a 1-based line range; limit=0 means unlimited. Defaults to first 200 lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path on the remote host. | |
| limit | No | Maximum number of lines to return; 0 means unlimited. | |
| offset | No | 1-based starting line (0 is treated as 1). | |
| target | Yes | SSH target in the form user@host[:port]. Uses the local SSH config and keys. |