get_product_by_sku
Look up a product's stock, price, and image URL by exact SKU, including matched variant details.
Instructions
以 SKU 精準查詢單一商品的貨況(庫存、價格)與商品圖 URL。
等同於 get_product_list(sku=...),但額外把該 SKU 對應的變體明細 (matched_variants)挑出來,查單一貨品時讀起來更直接。 需要一次查多個條件或列清單時請用 get_product_list。
【呼叫的 Shopline API】
GET /v1/products/search?sku={sku}
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": {
"sku": "<sku>"
},
"name": "get_product_by_sku"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | 商品或變體的 SKU(完全相符) |