Add photos to a new listing
add_listing_photosAdds photos to a draft: photos attached in the chat (where the app supports it), the photos the listing link import found (useImportedPhotos), files uploaded with request_photo_upload (uploadIds, up to 12), and/or https image links (urls, up to 12 per call). JPG, PNG, WebP or HEIC, up to 25 MB each. Sending the same photo again adds nothing twice, so repeated calls continue until notYetAdded is 0. A listing needs at least 3 photos; the account's photo limit decides how many appear in the video, and the rest stay in the listing gallery.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"draftId": "<draftId>"
},
"name": "add_listing_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | https image links to the person's own photos (JPG, PNG, WebP or HEIC), up to 12 per call. | |
| photos | No | Photos attached in the chat. | |
| draftId | Yes | The draftId start_listing returned. | |
| uploadIds | No | uploadIds from request_photo_upload whose files were already sent, up to 12. | |
| useImportedPhotos | No | true adds the photos the listing link import found. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No |