Add to cart
cart_add_itemAdd a configured product to the cart. Use product_configure first for required variant option ids.
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": {
"storeId": "<storeId>",
"productId": "<productId>"
},
"name": "cart_add_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional line item notes. | |
| storeId | Yes | Okam store id. | |
| quantity | No | Quantity to add. | |
| productId | Yes | Product id from menu_list. | |
| selectedOptionIds | No | Selected product option ids as GUID strings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No |