ssh_read_file
Read remote files over SFTP with optional line offset and limit, useful for inspecting logs and large config files.
Instructions
Read the contents of a remote file over SFTP. Supports offset lines and line limits for inspecting log files and large config files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The remote absolute path to the file (e.g. /etc/nginx/nginx.conf or /var/log/syslog). | |
| maxLines | No | Optional maximum number of lines to return. | |
| serverId | Yes | The ID of the configured target server. | |
| offsetLines | No | Optional starting line index (0-indexed). |