ssh_read_remote_file
Read the contents of a text file stored on a remote host via an active SSH session. Specify the remote path and optionally limit the amount read.
Instructions
Read a text file on the remote host and return its contents. For large files, use max_bytes to limit the amount read.
Args: session_id: The session ID returned by ssh_connect. remote_path: Path to the file on the remote host. max_bytes: Maximum bytes to read (default: 1MB). Set to 0 for no limit.
Returns: File contents as text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remote_path | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |