delete_product_images
Delete specified images from a product's gallery. Permanently removes outdated or incorrectly uploaded images.
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 |
|---|---|---|---|
| product_id | Yes | 商品內部 ID | |
| image_ids | Yes | 要刪除的圖片 ID 列表 |