upload_asset
Internal: called by the show_upload_widget widget to store the picked file. Do not call directly, chat attachments cannot be passed as base64 here. Use show_upload_widget instead.
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": {
"filename": "<filename>",
"contentType": "<contentType>",
"dataBase64": "<dataBase64>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original file name, used to derive the asset name | |
| dataBase64 | Yes | File contents as a base64 string (no data: URL prefix) | |
| contentType | Yes | MIME type of the file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes |