Warenkorb setzen
set_cartCreate or replace the cart. Pass cart_id to change an existing cart (omit it to create one). items replace the whole cart; quantity 0 removes an item. All items must come from the same shop. For products with pack sizes pass variant_id from get_product. Quantities above stock are rejected with a message.
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": "set_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| cart_id | No |