read_file
Read a remote file over SSH. Falls back to sudo cat if permission denied.
Instructions
Read a remote file over SSH. Falls back to sudo cat if permission denied.
Returns at most max_bytes bytes, cut on a character (and line) boundary.
A truncated result reports the line range and how to resume with
start_line or offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| errors | No | replace | |
| offset | No | ||
| encoding | No | utf-8 | |
| password | No | ||
| use_sudo | No | ||
| username | No | ||
| max_bytes | No | ||
| start_line | No | ||
| remote_path | Yes | ||
| key_filename | No | ||
| sudo_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |