Remove from cart
remove_from_cartRemove a product from a Picnic shopping cart by product ID; optionally specify quantity and receive the quantity left plus cart total.
Instructions
Remove a product from the user's Picnic shopping cart. Get the product id from get_cart. Returns the quantity left 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>"
},
"name": "remove_from_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | How many to remove. Default 1. | |
| productId | Yes | The product id from search_products or get_cart, e.g. s1004201. |