ssh_read_file
Read and return a file's content from a remote server over SSH for explanation, analysis, or review.
Instructions
Read and return the contents of a file on a remote server. Use this when the user asks to explain, analyze, review, or show a file from a server. Requires an active SSH connection.
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": {
"connectionId": "<connectionId>",
"remotePath": "<remotePath>"
},
"name": "ssh_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxBytes | No | Maximum bytes to read (default: 1048576) | |
| remotePath | Yes | Absolute path to the file on the remote server | |
| connectionId | Yes | Host alias from ~/.ssh/config (e.g. "Beta") or an active connection ID |