Update cart item quantity
update_cart_itemSet the quantity of a cart line by line_id (from view_cart). Quantity 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": {
"lineId": "<lineId>",
"quantity": "<quantity>"
},
"name": "update_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineId | Yes | line_id from view_cart. | |
| quantity | Yes | New quantity (0 removes). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Cart line items (line_id, product_id, name, quantity, prices, options). | |
| message | No | Present on an empty cart. | |
| currency | No | ||
| subtotal | No | ||
| item_count | No | ||
| merchant_id | No | ||
| merchant_city | No | ||
| merchant_name | No |