update_cart_item
Set the absolute quantity of a basket line using its item_id from get_cart, not product_id. Zero removes the line; use add_cart_item to increment instead. Returns the refreshed basket; no order or payment. OAuth scopes: cart:write. Changes buyer or order state.
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": {
"item_id": "<item_id>",
"quantity": "<quantity>"
},
"name": "update_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Basket line item_id from this consenting buyer's get_cart response, not product_id or another buyer's item. | |
| quantity | Yes | New ABSOLUTE quantity for this basket line, not an increment. Zero removes the line. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| empty | Yes | ||
| items | Yes | ||
| currency | Yes | ||
| subtotal | Yes | ||
| orderable | Yes | ||
| total_quantity | Yes |