Add to cart
add_to_cartBuild a ready-to-checkout cart and return a cart link. The shopper completes checkout and payment securely on the store. Pass one or more line items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items to add to the cart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| cart_url | Yes | ||
| checkout | No |