Add to cart
add_lineAdds a quantity of a product (and combination, for products with sizes or colours) to the cart. At most 10 of one item and 50 in total.
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": {
"cart_token": "<cart_token>",
"product_id": "<product_id>"
},
"name": "add_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | ||
| cart_token | Yes | cart_token from create_cart | |
| product_id | Yes | ||
| combination_id | No | from get_availability; 0 or absent for a product without combinations |