get_product_variants
Get detailed SKU variant information and inventory matrix for a product, including size and color options.
Instructions
取得特定商品的所有 SKU 變體明細,含尺寸×顏色的庫存矩陣。
【呼叫的 Shopline API】
GET /v1/products/{product_id}
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>"
},
"name": "get_product_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | 商品 ID |