ssh_sftp_read_file
Retrieve file contents from a remote server via SFTP. Specify the connection, path, and optional encoding.
Instructions
Read the contents of a file on the remote server using SFTP.
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>",
"path": "<path>"
},
"name": "ssh_sftp_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | Yes | The session ID returned by ssh_connect | |
| path | Yes | Remote path of the file to read | |
| encoding | No | Encoding to use (e.g. 'utf8', 'base64' for binary files). Default is 'utf8'. |