read_remote_file
Read the contents of a file on a remote server using a saved SSH connection and an absolute path, returning the text for inspection or troubleshooting.
Instructions
Read the contents of a file on a remote server.
Parameters:
connection: Name of the connection (from list_connections)
path: Absolute path to the file on the remote server
Example usage: read_remote_file("web1", "/etc/nginx/nginx.conf")
Returns the 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": {
"connection": "<connection>",
"path": "<path>"
},
"name": "read_remote_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file on the remote server | |
| connection | Yes | Name of the SSH connection to use |