Open a resumable file transfer
file_transfer_openStart a chunked file transfer session for upload or download. Provides a resume cursor that survives server restarts, with optional sha256 and size verification at commit.
Instructions
Open a chunked upload or download session. Upload: send chunks with file_transfer_write starting at offset 0, then file_transfer_commit. Download: fetch chunks with file_transfer_read until eof. Sessions survive server restarts — resume at the reported nextOffset.
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": {
"direction": "<direction>",
"path": "<path>"
},
"name": "file_transfer_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Server-side destination (upload) or source (download) path. | |
| size | No | Upload: expected byte size, verified at commit. | |
| sha256 | No | Upload: expected hex sha256, verified at commit. | |
| direction | Yes |