Write one chunk to an upload session
file_transfer_writeAppend base64 chunks to a file-transfer session at the expected offset for incremental uploads. On offset mismatch, get a repairable error with correct cursor to resume.
Instructions
Append a base64 chunk at the session's expected offset. A wrong offset returns a repairable error with the correct cursor instead of failing the transfer.
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": {
"handle": "<handle>",
"offset": "<offset>",
"data": "<data>"
},
"name": "file_transfer_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded chunk (<= the session's chunkSize). | |
| handle | Yes | ||
| offset | Yes |