Create cart
create_cartCreates a cart drawer the way the app's editor starts one: in the store's colors and language, with trust badges that state the store's facts, then applies any changes. A Plus store's first cart goes live at once. Every other new cart is off until set_cart_status switches it on, which replaces the live cart. Look up product and variant ids with search_products first. When the changes add reward tiers, tell the merchant what the result's rewards.tell_merchant says: each reward, its threshold and discount, and whether the Shopify automatic discount is active. A new cart starts with a free-shipping tier, three trust badges and a shipping-protection add-on; a list of new tiers, badges or order_upsells in changes replaces those starters. When copying a cart from a screenshot or another store, ask the merchant first whether to copy its colors or keep the store's own colors, then render_cart_preview the result and patch what differs.
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": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name in the app. Shoppers don't see it. Unique in the store. | |
| changes | No | Fields to change, named as get_cart returns them. Sections merge into what is there; a section the cart lacks starts from its defaults, so send enabled: true to show it. Write shopper text in the cart's language (get_cart shows it). |