Push Image to Shopify
sirv_push_image_to_shopifyPublishes a Studio image asset to an imported Shopify product in the live store, optionally setting it as the featured image.
Instructions
Publish one library asset as an image of one Shopify product. The product must be imported from Shopify.
Use it to send a finished image to the store. To link an image to a product in Studio only, use sirv_link_assets_to_product.
This writes to the live store. Studio creates an approved publish plan and runs it in the background, so the image reaches Shopify a few seconds after this call returns. It only adds the image: replacing the store's images is done in Studio. Send the same idempotencyKey on a retry, so that the image is not published twice.
If Shopify changed the product since Studio last imported it, the publish fails with 409 "Shopify changed this product since it was imported". Run sirv_sync_shopify_products, then try again.
Returns the publish plan id, the run id and the run status.
Credits: free.
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>",
"assetId": "<assetId>"
},
"name": "sirv_push_image_to_shopify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| assetId | Yes | Studio asset id of the image to publish, from sirv_list_assets | |
| alt_text | No | Alt text for the image in Shopify, up to 512 characters | |
| productId | Yes | Studio product id of a product imported from Shopify, from sirv_list_products | |
| idempotencyKey | No | Any UUID. Send the same one when you retry this publish, so Studio does not publish it twice | |
| set_as_featured | No | true makes this image the product's featured image. Default: false |