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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"remote_path": "<remote_path>"
},
"name": "ssh_read_remote_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remote_path | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |