add_to_cart
Add a product to a cart, automatically merging quantities if the product already exists in the cart.
Instructions
Add a product to a cart, merging with an existing line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | Unique cart identifier. | |
| request | Yes | Input contract for the ``add_to_cart`` tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Line items currently in the cart. | |
| cart_id | Yes | Unique cart identifier. | |
| created_at | Yes | UTC timestamp of cart creation. | |
| updated_at | Yes | UTC timestamp of the last modification. |