Empty cart
clear_cartRemoves all products from the cart in one step using the website's remove-all action and confirms it is empty. Call only when the user asks to empty the whole cart; pass confirm true.
Instructions
Remove every product from the cart in one step, with the website's own "remove all" action, and confirm the cart is empty. Only when the user asks to empty or clear the whole cart; pass confirm: true. To remove some products, use remove_cart_item. If the result has mutation.outcome "unknown", the cart may have changed: call get_cart before any further change and never repeat the request automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true: the user asked to empty the whole cart. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |