add_cart_item
Add an item to an existing same-store cart or a specified cart, creating a new cart if none exists. Other carts stay intact; option IDs come from get_menu_item_options.
Instructions
Add an item to an explicit cart or the existing same-store cart; otherwise create one. Preserves other carts. Option IDs come from get_menu_item_options. Do not blindly retry on unknown outcome.
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": {
"store_id": "<store_id>",
"item_id": "<item_id>"
},
"name": "add_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | ||
| item_id | Yes | ||
| options | No | ||
| quantity | No | ||
| store_id | Yes | ||
| special_instructions | No |