Upload the photo for the poster
upload_photoStore the photo that will be printed on the poster, and return the photo_url to pass to create_poster_checkout. Only use a photo the user has given in THIS conversation. Never reuse a photo or link from memory or an earlier conversation, and never use a product or poster image. If the user hasn't given a photo yet, ask them for one instead of calling this. Give exactly one of: photo (a file the user attached in this chat), image_url (a public https link to the image), image_base64, or upload_id (from get_photo_upload_link, once the user says they've uploaded). If you can't send the user's photo any of these ways, call get_photo_upload_link instead of asking the user for a link. JPEG, PNG or WebP, up to 20MB. Photos are kept for 12 months so the poster can be made and revised, then deleted automatically.
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_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | No | A photo the user attached in this chat (ChatGPT file reference). | |
| image_url | No | Public https:// address of the image. | |
| upload_id | No | The upload_id from get_photo_upload_link, after the user has uploaded on that page. | |
| image_base64 | No | The image file encoded as base64 (a data: URL prefix is fine). |