read_file
Read the contents of a remote file over SSH. Specify the file path and optionally limit lines or choose a named host.
Instructions
Read the content of a remote file.
Args: path: Absolute path to the file (e.g., "/etc/nginx/nginx.conf"). max_lines: Maximum number of lines to return (default 200, 0 = unlimited). host_name: Named host from SSH_HOSTS config; uses default host if omitted.
Returns: File content as text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| host_name | No | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |