Uploads an image to the CDN and returns its public URL, ready to be passed as media when you publish an update.
Give the image in one of two ways, never both:
source_url- the address of an image already online, which we download. This is the one to use for a real photo.content_base64- the image as text, for small images only. A real photo is hundreds of thousands of characters, and an assistant cannot retype them without a slip; one wrong character is a broken image on your listing.
Neither way needs a binary file, which is what makes this callable by an assistant connected through MCP: an assistant fills request fields with text.
Any common photo format works - JPEG, PNG, WebP and the HEIC an iPhone shoots: we convert it to JPEG, turn it the right way up and shrink it if it is huge. It must be at least 250x250 pixels. A data: prefix on the base64 is accepted and ignored. A source_url must be reachable from the internet: a link only your browser can open, such as a private Drive file, will not work.
The URL you get back is good for one update: publishing hands the image to Google, which keeps its own copy, and ours is dropped. For a second update, upload again.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||