tiendanube_update_cart_item_quantity
Update cart item quantity using item ID or variant ID. When only variant ID is given, removes and re-adds the item.
Instructions
UPDATE CART ITEM QTY - Update line item quantity by item_id or variant_id (fallback removes+adds).
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": {
"quantity": "<quantity>"
},
"name": "tiendanube_update_cart_item_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | Cart numeric ID | |
| cart_token | No | Cart token string | |
| item_id | No | Cart line item ID | |
| variant_id | No | Variant ID (if no item_id) | |
| quantity | Yes | New quantity (>=1) |