Upload File to Bucket
nexusai_bucket_file_uploadUpload a file to a bucket from base64-encoded content. Limited to ~10MB decoded (base64-over-JSON is not suited to large files) — for bigger uploads use the CLI (nexus bucket upload) or PUT /api/buckets/:id/files/:key, which stream the upload instead of base64-encoding it.
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": {
"bucketId": "<bucketId>",
"key": "<key>",
"contentBase64": "<contentBase64>"
},
"name": "nexusai_bucket_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key (file path within the bucket). | |
| bucketId | Yes | ||
| contentType | No | MIME type. Default application/octet-stream. | |
| contentBase64 | Yes | Base64-encoded file content. |