create_product_image
Add an image to a Shopify product using a URL. Optionally assign the image to specific variants.
Instructions
Add an image to a product by URL. Optionally assign it to specific variants.
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>",
"src": "<src>"
},
"name": "create_product_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The numeric Shopify product ID. | |
| src | Yes | Image URL to upload. | |
| alt | No | Alt text for the image. | |
| position | No | Position/order of the image (1 = first). | |
| variant_ids | No | Variant IDs to associate this image with. Note: newly uploaded media may still be processing; if assignment fails, retry with update_product_image once the media status is READY. |