read_file
Read the contents of a remote file over SSH. Automatically uses sudo if initial read fails due to permissions.
Instructions
Read a remote file over SSH. Falls back to sudo cat if permission denied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| errors | No | replace | |
| encoding | No | utf-8 | |
| password | No | ||
| use_sudo | No | ||
| username | No | ||
| max_bytes | No | ||
| remote_path | Yes | ||
| key_filename | No | ||
| sudo_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |