shopping_cart
Member-only 24-hour DRAFT cart in chat, NOT the website cart. No history consent required: saves only selected product IDs/quantities for this task. Actions: select_many (items list; continues past product-specific failures and reports saved/failed/unattempted separately); active (shared cart); select (atomic absolute quantity upsert in shared cart); active_handoff (all shared items); create; view; set_item (absolute quantity, adds if missing); remove; replace (exact variant ID, keeps quantity); clear; handoff. product_name may carry the published name for bounded automatic parent recovery; never send health questions or personal data. Editing requires latest version and cart_id. Never infer IDs from SKU suffixes. Configurable line limit (default50), whole quantity1..20. For showing the basket to the user, call show_cart instead. This tool is for state checks, edits and handoff. direct_handoff is only for the confirmed Order button in the Zoya component. handoff creates a single-dispatch preview link only and does not change website cart. Once transferred, edits affect this draft only; never transfer again without warning about adding again.
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": {
"action": "<action>"
},
"name": "shopping_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| action | Yes | ||
| cart_id | No | ||
| version | No | ||
| language | No | bg | |
| quantity | No | ||
| product_id | No | ||
| product_name | No | ||
| remember_order | No | ||
| parent_product_id | No | ||
| replacement_product_id | No |