Add / update cart item
zoodex_cart_set_itemSets the absolute quantity of a product variety in a cart, including extras and kitchen notes; use 0 to remove an item or an existing cart line ID to update it.
Instructions
Set the quantity of a product variety in the cart (quantity is absolute, not a delta; 0 removes it). Use variety_id from search/menu results. If the product has additionals (extras/options), pass their ids. To change an existing line (e.g. with different additionals) pass its product_cart_id from zoodex_cart_view. Works logged out (guest cart, merged on login).
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": {
"variety_id": "<variety_id>",
"quantity": "<quantity>"
},
"name": "zoodex_cart_set_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Item note for the kitchen, e.g. 'no onions'. | |
| quantity | Yes | ||
| variety_id | Yes | variety_id from zoodex_search / zoodex_vendor_menu / zoodex_find_best_deals. | |
| additionals | No | Additional/extra option ids. | |
| product_cart_id | No | Existing cart line id to update. | |
| zoodex_plus_only | No | Set for items marked only_plus (Zoodex Plus members only). |