Upload an image from the iMario card
upload_assetUsed by the iMario card inside the chat to hand over the image the user picked. Agents: do not call this; use request_upload and send the file to its upload_url 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": {
"token": "<token>",
"data_base64": "<data_base64>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token returned by the upload preparation tool | |
| filename | No | The image's file name, e.g. 'banner-b.png'. Optional | |
| data_base64 | Yes | The image, base64 or a data: URL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | false means the call failed: read `error` and `hint` | |
| ref | No | ||
| hint | No | What to change, when ok is false | |
| next | No | What to do next | |
| note | No | Something to tell the user or keep in mind | |
| error | No | Error code, when ok is false | |
| received | No |