Добавить в корзину Megamarket
add_to_cartAdd a product to the shopping cart using its product ID and receive the current cart contents.
Instructions
Добавляет товар в корзину (по id из выдачи/деталки) и возвращает актуальное состояние корзины.
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": {
"id": "<id>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Идентификатор товара из выдачи search_products или get_product |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | ||
| added | Yes |