Create Image Upload
create_image_uploadCreate a secure web or installed-app image picker when the user asks for an upload link, or an image-based action cannot receive the original image directly. Use this even when you can see a chat photo but cannot pass its real file reference, public URL or original bytes to add_wardrobe_item_from_image. For wardrobe photos, use purpose wardrobe_image_add; do not silently switch to add_wardrobe_item_from_description. Generate a requestId for a new action or reuse the same requestId from a direct-image attempt. Currently supports wardrobe_image_add: one clothing item per image. Returns uploadId, uploadPageUrl, expiresAt and a purpose-specific action reference. Show uploadPageUrl and ask the user to open it and submit their photo. Creating the link does not upload the chat attachment or add the item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| purpose | Yes | ||
| requestId | Yes | Unique identifier for this requested action. Reuse it for retries and the upload-page fallback; use a new value for another item. |