delete_product_images
Remove specific images from a product's gallery by providing product ID and image IDs. Permanently deletes images; if the main image is removed, the next image in the album becomes the new main image.
Instructions
[WRITE] 刪除商品圖片。
【用途】 從商品相簿中刪除指定圖片。適用於移除過時圖片或錯誤上傳的圖片。
【呼叫的 Shopline API】
DELETE /v1/products/{product_id}/images
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
永久刪除指定圖片,不可復原
若被刪除的圖片為商品主圖,商品主圖將自動替換為相簿中下一張圖片
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>",
"image_ids": "<image_ids>"
},
"name": "delete_product_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_ids | Yes | 要刪除的圖片 ID 列表 | |
| product_id | Yes | 商品內部 ID |