Upload a small image
upload_imageUpload a small JPEG, PNG, or WebP file the user chose and the client already holds, at most 1 MiB encoded as base64. Prefer upload_image_from_address or an upload link for anything larger.
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": {
"base64": "<base64>",
"mediaType": "<mediaType>",
"requestId": "<requestId>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | ||
| profile | No | The username of the profile to work as. Needed only when the connection has several profiles; the user chooses it. | |
| mediaType | Yes | ||
| requestId | Yes | A unique ID for this write. Reuse it when retrying the same request. |