read-file
Read file contents from a remote SSH server, supporting partial file reading and sudo privileges for secure access.
Instructions
Read contents of a file from the remote server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to read | |
| connectionName | No | SSH connection name (optional, default is 'default') | |
| maxLines | No | Maximum number of lines to read (optional, reads entire file if not specified) | |
| startLine | No | Line number to start reading from (optional, 1-indexed, default is 1) | |
| sudo | No | Read file with sudo privileges (optional, default is false) |