Request image upload
request_image_uploadCall this immediately, without asking first, whenever the user has pasted or attached an image in this chat and wants Rawa to do something with it (resize it for a platform, edit it, remove its background, sharpen it, publish it, make an ad from it). You cannot read the attachment yourself and must not ask the user to re-attach it, send it another way or confirm that they want to upload: opening the panel is how the image reaches Rawa. An attached image is not in the brand's library, whatever its filename: do not search or list the library for it. Pick the brand from the conversation or the image (the user's only brand, or the one named); ask which brand only when it is genuinely unclear, and then open the panel in the same turn as you get the answer. Where the panel is shown, ask the user to drop the image(s) in it; you will be told each creativeId as it lands (an image the brand's library already holds lands as that creative), and the panel sends you a message with all of them once the upload is done. Where no panel appears, send the user the uploadUrl instead and call get_upload with the uploadId once they say they are done. The link takes up to maxImages images and expires after an hour. Free: nothing is charged for the link or the upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brandId | No | A brand id from get_workspace or list_brands, or the brand's name. Omit it when the organization has a single brand. | |
| purpose | No | What the images are for, shown on the upload page, e.g. 'Resize for Google Ads and Snapchat'. | |
| maxImages | No | How many images the link accepts. Defaults to 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| purpose | No | ||
| uploadId | Yes | ||
| expiresAt | Yes | ||
| maxImages | Yes | ||
| uploadUrl | Yes |