create_cart
Create a new Agent Checkout-attributed cart with a selected product variant. Use only after the user has chosen a specific product or clearly asked to add/buy it. This prepares the purchase but does not charge the buyer.
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": {
"site_slug": "<site_slug>",
"variant_id": "<variant_id>"
},
"name": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | ||
| site_slug | Yes | ||
| variant_id | Yes |