Добавление в корзину
grocery_add_to_cartAdd products to a grocery cart using a JSON list of item IDs and quantities, with app_id and point_id from grocery_stores to keep cart and checkout on the same store.
Instructions
Добавить товары в корзину. items = JSON [{id, count}, ...]. app_id/point_id — из grocery_stores() (обязательны). Запомни их — тот же магазин нужен для grocery_cart и grocery_checkout.
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": "grocery_add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| app_id | No | ||
| point_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |