Set cart quantity
set_cart_quantitySet the quantity of a product in a Picnic shopping cart; use 0 to remove it. Returns the updated quantity and cart total.
Instructions
Set how many of a product are in the user's Picnic shopping cart, e.g. when the user says "make it 3". 0 removes the product. Get the product id from get_cart or search_products. Returns the quantity now in the cart and the cart total.
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": {
"productId": "<productId>",
"quantity": "<quantity>"
},
"name": "set_cart_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | How many should be in the cart. 0 removes the product. | |
| productId | Yes | The product id from search_products or get_cart, e.g. s1004201. |