Add product images
hub_add_product_imagesAdd photos to an existing product — from public URLs, or as base64 bytes when the merchant attached the file itself and there is no URL. URL images are downloaded and stored on the platform, so the product never depends on someone else's site staying up. Existing photos are KEPT — this adds to them. JPEG/PNG/WebP/GIF/HEIC, up to 20MB each. Takes the product ID from get_products, never a name.
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": {
"productId": "<productId>"
},
"name": "hub_add_product_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrls | No | Public URLs of the photos to add | |
| productId | Yes | Product id from get_products — not a name | |
| imageFiles | No | Photos the merchant attached — use when there is no public URL |