Start an upload
start_uploadReserve a file and get a one-time upload address (PUT the bytes there). Use when storing a file. Before: a bucket id, the file size and the SHA-256 of its bytes. Returns an upload id (upl_...) and a one-time address; PUT the exact bytes there, then call commit_upload. Scope: storage:write. Cost: stored bytes are billed from the prepaid balance (get_pricing).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "bkt_0123456789abcdef0123456789abcdef",
"key": "images/logo.png",
"checksum": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"size_bytes": 2048,
"idempotency_key": "upload-logo-png"
},
"name": "start_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Bucket id (bkt_...). | |
| key | Yes | File path in the bucket, no leading /. | |
| checksum | Yes | sha256:<hex of the bytes> | |
| size_bytes | Yes | Exact size of the file in bytes. | |
| idempotency_key | Yes | Unique per request (8-128 chars). Reuse it on retry. |