Upload blob
upload_blobSend one file the site lacks into an upload opened by create_bundle_upload with a manifest, named by its sha256, its bytes base64-encoded in this call. Send only the hashes that create_bundle_upload listed as missing. Its bytes travel inside the call, so it suits small files: a photo goes faster as a PUT from your shell to blob_upload_url, and this tool is for when that PUT is refused. A file of at most 1 MB goes whole and is checked at once: refused, with nothing stored, unless its bytes match its sha256 and size. A larger one goes as numbered parts 0, 1, 2, ... of at most 1 MB, with no gaps, joined and checked only when update_site is called; re-sending an index replaces it. It needs a shell that makes the SnapHost tool calls itself. Pass the same workspace_id as create_bundle_upload did.
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": {
"upload_id": "<upload_id>",
"sha256": "<sha256>",
"dataBase64": "<dataBase64>"
},
"name": "upload_blob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | For a file sent in parts: the 0-based index of this part. Omit for a whole file. | |
| sha256 | Yes | The SHA-256 of the whole file, as create_bundle_upload listed it | |
| upload_id | Yes | The `upload_id` from create_bundle_upload with a manifest | |
| dataBase64 | Yes | The file, or this part of it, base64-encoded. Read it from the encoded file verbatim rather than reproducing it from memory. | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |