Upload a reference image
upload_reference_imageStage an image for generate_cover_from_reference (a cover the user likes, a mood board, their art) or a person photo for replace_person_on_cover. Free. Returns an upload_id.
A cover in this account: skip this tool; pass its coverId as reference_cover_ids.
Attached in the chat or on the user's device: call with no image argument, give the user the link, and wait until they say it is uploaded. Your sandbox cannot send an attachment.
At a public https URL: image_url.
With a shell and open network: add content_type to get a curl command. JPEG, PNG or WebP; 256-4096 px; up to 5 MB.
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_reference_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | No | An https URL the server can fetch the image from. Must be a public host. Omit it to get an upload link for the user instead. | |
| content_type | No | The image's MIME type. Required with image_base64. With no image argument, it adds a curl command for an agent with a shell. Ignored with image_url. | |
| image_base64 | No | Only for an image under 256 KB (decoded), raw base64 with no data: prefix. You generate every character of it, so a larger image fails: use the upload link. |