Upload the user's image
upload_imageUse this when the user wants to use an image of their own: a product to hold or add, a garment to try on, a reference for a scene, or photos of themselves for a clone. Pass files the user attached as images, or image links as urls, and it returns an upload_id for each at once. With neither, it shows an upload box in the chat where the user picks the photo (count says how many, up to 4); the chat then gets a message with the upload_id. Free. Use the upload_id as the image in edit_photo or generate_photos' reference_images. Images the user already made here don't need uploading: pass their photo_id instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | https:// links to images. | |
| count | No | Without images or urls: how many photos the upload box takes. Ask for all the photos a task needs in one box, such as 4 for a clone. | |
| label | No | Without images or urls: what to upload, shown on the box, for example "the product" or "your outfit". | |
| images | No | Files the user attached in the chat. | |
| content_type | No | Only when you can run shell commands and have the file on disk: its type, to get put_urls to send it to with curl. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| label | No | ||
| status | No | ||
| summary | Yes | ||
| uploads | No | Images taken in now. | |
| put_urls | No | ||
| error_code | No | Present only on a refusal. | |
| upload_ids | No | IDs the upload box fills in once the user uploads. | |
| upload_page_url | No | A page on theinfluencer.ai that fills the same upload_ids, if the box doesn't show. |