attachment_begin
Start a chunked file upload and return an uploadId to pass to attachment_chunk, so files larger than a single message can be sent in pieces.
Instructions
Start receiving a file from the client. Returns an uploadId to pass to attachment_chunk. Uploads are chunked because a single message has transport ceilings; 8 MiB of raw bytes (about 10.7 MiB base64) per chunk is comfortable.
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": {
"name": "<name>"
},
"name": "attachment_begin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | MIME type, if the client knows it. | |
| name | Yes | Original filename as the user's picker gave it. This is DISPLAY metadata -- it is reported back verbatim by commit, so do not sanitise it on the way in. | |
| size | No | Total bytes, when known. |