Upload Blob
upload_blobUpload a file or text blob to an AFFiNE workspace and receive its blob key. Content is provided as base64 or plain text.
Instructions
Upload a file or blob into AFFiNE workspace storage and return its blob key. This creates stored content but does not attach it to a document by itself.
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": {
"workspaceId": "<workspaceId>",
"content": "<content>"
},
"name": "upload_blob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Base64-encoded file content or plain UTF-8 text to upload. | |
| filename | No | Optional filename stored with the upload. Defaults to a generated .bin name. | |
| contentType | No | Optional MIME type. Defaults to application/octet-stream. | |
| workspaceId | Yes | AFFiNE workspace id that owns the blob. |