AddSynapse: draft product images
plan_product_imagesAddSynapse: Prepare a DRAFT that changes the images of WooCommerce products: the main image (featured) and the gallery (replace it, add, remove or reorder images) of products, and the main image of variations. See the current images first with get_product (image_id, gallery_image_ids, images) or find_media with product_ids. An image is the id of an image already in the media library (find_media), or {"url": "https://…", "alt": "…"} for a NEW image from a public https link the user gave you (JPG, PNG, WebP or GIF, at most 10 MB, up to 10 per draft): the site checks the link now and downloads the image into its media library only when the user presses Approve, with the alt text. You cannot send image files or pictures from the chat: for a photo on the user's computer or phone, or an image you created, ask the user for a public link to it, or to upload it in wp-admin → Media → Add New, then use find_media for its id. Put all products of one request in ONE call (up to 20); a gallery holds up to 30 images. Changes nothing by itself: the draft card shows the images before and after; nothing changes until the user presses Approve; Undo restores exactly the previous images and deletes the new images it added while nothing else uses them. Before calling it, say in plain words which images will change and get the user's agreement. Put every edit of this request in ONE call (up to 20 products or variations) — the user approves them together with one click and can undo them together; never one call per item.
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": {
"products": "<products>"
},
"name": "plan_product_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Which connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site. | |
| products | Yes |