read_file
Retrieve file contents from a remote server over SFTP by specifying the configured host and absolute path, with an optional byte limit to control the amount returned.
Instructions
Read a remote file over 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": {
"host": "<host>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Configured host name | |
| path | Yes | Absolute path of the file to read | |
| max_bytes | No | Maximum number of bytes to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |