sftp_read
Read a remote file in chunks over SFTP to page through large files with offset and limit, returning UTF-8 text or exact base64 bytes.
Instructions
Read part of a remote file. Use offset and next_offset to page through it. encoding=utf8 avoids splitting a character; encoding=base64 returns exact bytes.
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": {
"path": "<path>"
},
"name": "sftp_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Remote file path to read | |
| limit | No | Maximum bytes to read, default 25000 | |
| offset | No | Byte offset to start reading, default 0 | |
| timeout | No | Abort this SFTP operation if it makes no progress for this many milliseconds | |
| encoding | No | utf8 or base64, default utf8 | |
| session_id | No | Session ID (optional if using pre-configured server) |