Add photos to a draft and publish it
listing_add_photosAdd photos to a draft that listing_create saved without photos, and publish it. Only drafts this connection's account created through the connector can be finished here. Requires confirmed: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | A draft_id from listing_create or from drafts_awaiting_photos in seller_list_listings. | |
| confirmed | Yes | false: nothing is published, and the result says what would be. true: publish, once the seller has agreed. | |
| photo_urls | No | Up to 8 photos. Prefer https image URLs (JPEG, PNG, WebP or GIF, up to 5MB each). A data:image URL works only for a small image: the whole request is limited to 256KB and a larger one is refused before the tool runs. A photo the seller attached in the chat goes in photo_files, never written out here; if the chat app cannot attach it, publish without photos to save a draft and give the seller finish_url. A preview does not download photos: include https links in it anyway so they are checked (a Commonplace link such as /api/img/<listing id>/0 belongs to that listing, and another seller's is a problem there), but send an inline image only with the confirmed call, since writing one out twice costs the seller minutes. EXIF location data is removed. | |
| photo_files | No | Photos the seller attached in the chat. The chat app fills these in (each a download_url and file_id); never write one by hand. They get the same checks as photo_urls. |