Add photos to one of my products
add_product_photosAdds photos to one variant of one of your print shop's products, from public https links to PNG or JPG images (up to 10 MB each) or from images the user attached, where the app passes attached files to tools. Each photo is copied into Printlooper. New photos go after the ones already on the variant; none is removed or reordered. A variant holds 6 photos. Only products from list_my_products. Needs a connected Printlooper account.
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": {
"product_id": "<product_id>"
},
"name": "add_product_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo_urls | No | Public https links, each downloading one PNG or JPG image (a direct link to the file, not a web page) | |
| product_id | Yes | product_id from list_my_products | |
| variant_id | No | variant_id from get_my_product. May be left out when the product has one variant. | |
| photo_files | No | Images the user attached, as the file objects an app passes to tools. Leave out when you have no download_url for an image |