add_product_images
Add product images by submitting public image URLs, appending them to the product's existing gallery. Use for display or lifestyle shots.
Instructions
[WRITE] 為商品新增圖片。
【用途】 上傳圖片 URL 至商品相簿,圖片會被加入到現有圖片之後。 適用於新增商品展示圖、情境圖等。
【呼叫的 Shopline API】
POST /v1/products/{product_id}/images
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, images: list。
【副作用】
圖片加入商品相簿,前台立即可見
圖片 URL 必須為公開可存取的連結,Shopline 將下載並儲存
圖片數量上限取決於 Shopline 商店方案設定
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_urls": "<image_urls>"
},
"name": "add_product_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_urls | Yes | 圖片 URL 列表(公開可存取的圖片連結) | |
| product_id | Yes | 商品內部 ID |