update_cart
Update line item quantities in an active shopping cart. Example: update_cart(cart_id='cart_1', line_items=[])
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | Shopping cart identifier. | |
| line_items | No | Updated cart line items. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | Yes | Merchant domain identifier. | |
| ucp_version | No | Supported UCP specification version. |