Upload blob
upload_blobStore binary content (base64-encoded in 'data') in the content-addressed blob store and get back a BlobRef {$blobId, $mediaType, $bytes} to embed in a model's binary field. Storage is content-addressed (SHA-256), so uploading identical bytes returns the same $blobId.
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": {
"data": "<data>"
},
"name": "upload_blob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The blob content, base64-encoded. | |
| mediaType | No | Optional media type (default application/octet-stream). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| $bytes | No | Size in bytes. | |
| $blobId | No | Content-addressed id (sha256:...). | |
| $mediaType | No | The stored media type. |