Get cart
get_cartReturns one cart drawer with every setting assistants can change: its sections (top bar, announcement, banner, timer, reward bar with tiers, line items, product upsells, empty cart, order note, discount code, subtotal, checkout button, express checkout, payment icons, trust badges), order upsells, upgrade offers and the order they stack in. Without an id it returns the live cart. Pass include_style for colors and sizes. update_cart takes changes under the same names. A cart in an A/B test shows ab_test; pass version for the settings of version B, C or D.
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": "get_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Cart id from list_carts. Default: the live cart, or the store's only cart. | |
| version | No | A/B test version. Default A, the live item. B, C and D change only while the test is a draft. | |
| include_style | No | Also return colors, sizes and custom CSS. |