publish_to_shopify_product
Publish an image or video onto a Shopify product destructive
Description
Attach a finished IMAGE or VIDEO to one of the merchant's Shopify product listings, as product media. Pass productId (from list_shopify_products, the gid://shopify/Product/… form) and a PUBLIC https mediaUrl, which is what every Hermoso render returns. Whether it is a video is read from the file (.mp4 / .mov / .webm, or the link's content type); pass kind to say so outright. An image is fetched by Shopify directly; a video is uploaded to Shopify for you (MP4, MOV or WEBM, up to Shopify's 1 GB and 10-minute product-video limits; a file over a limit is refused by name, never cut). Shopify processes media asynchronously: the reply is the status read back from Shopify, and READY means it is live on the listing while PROCESSING means it will appear when Shopify finishes. That is success, not a failure. Works for the Shopify store connected to this brand (Connectors > Shopify, or connect_shopify_store) or the store this account was installed on. Free: the render was already paid for.
Parameters
| Parameter | Type | Description |
|---|---|---|
productIdrequired | string | gid://shopify/Product/… from list_shopify_products |
mediaUrl | string | any public https image or video URL: a Hermoso render works, and so does ANY file of your own brought in with upload_file |
imageUrl | string | older name for mediaUrl; still accepted |
kind | "image" | "video" | only when the link does not say (no file extension and no content type) |
alt | string | alt text for accessibility and SEO; defaults to a generic credit |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/publish_to_shopify_product.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"publish_to_shopify_product","arguments":{"productId":"<string>"}}}
CLI
hermoso call publish_to_shopify_product --json '{"productId":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_shopify_productsList the Shopify catalogconnect_shopify_storeConnect a Shopify storerecord_shopify_marketing_activityRecord an ad or campaign in Shopify > Marketinglist_shopify_storesWhich Shopify store this brand works withlist_shopify_marketing_activitiesList Shopify marketing activitiesdelete_shopify_marketing_activityDelete a Shopify marketing activitycreate_shopify_discount_codeCreate a Shopify discount codelist_shopify_discount_codesList Shopify discount codesdisable_shopify_discount_codeDisable a Shopify discount codelist_shopify_ordersList Shopify orders