Change a quantity
set_quantitySets the quantity of a cart line; 0 removes it.
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": {
"cart_token": "<cart_token>",
"product_id": "<product_id>",
"quantity": "<quantity>"
},
"name": "set_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | ||
| cart_token | Yes | cart_token from create_cart | |
| product_id | Yes | ||
| combination_id | No |