authorize_image_uploads
Prepares out-of-band uploads for image files, so their bytes never pass through this conversation. For each file returns file.uri (pass it as image to upload_entity_image) and upload (send the raw bytes as the body of an HTTPS PUT to upload.url before upload.expiresAt). Declare each file's exact byte size; its type must be image/png, image/jpeg, image/webp or image/gif, at most 20MB. An optional sha-256 digest is checked on upload. Requires the Editor role.
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": {
"campaignId": "<campaignId>",
"files": "<files>"
},
"name": "authorize_image_uploads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The files to upload, at most 50: [{"name": "Vorlag.jpg", "mimeType": "image/jpeg", "size": 248123, "digest": {"algorithm": "sha-256", "value": "<base64url, no padding>"}}]. digest is optional. | |
| campaignId | Yes |