add_to_cart
ChatGPTAdd a product to a cart payload for text-driven cart control, reject products without a positive price, sync numeric product ids to Kokiko cart API, and return structuredContent.cart with the current items, count, total, and sync status. Only call this tool for products with a positive numeric price; unavailable or unpriced products cannot be added. For multi-step requests, pass open_widget:false on intermediate add calls and allow only the final cart or checkout tool to open the widget.
check_cart
ChatGPTNormalize and summarize a cart payload for text-driven cart control. Returns structuredContent.cart and opens the cart widget.
clear_cart
ChatGPTClear all products from the current cart for text-driven cart control, sync the empty cart to Kokiko cart API when a backend cart session exists, and return structuredContent.cart with zero items, count, total, and sync status.
open_checkout
ChatGPTOpen the products widget directly on checkout using an optional cart payload. Use submit_order only when the customer data is complete and the order should be sent.
search_and_add_to_cart
ChatGPTUse this single tool for user requests that combine product search with adding to cart, including requests that first clear the cart. It searches all matching Kokiko products without a limit, optionally clears the active cart, adds the first priced match or requested product, and opens only the final cart widget.
search_products
ChatGPTSearch products by free-text query via Stage API. Args: query and optional limit. Returns structuredContent.products and structuredContent.no_results when empty.
set_widget_language
ChatGPTSwitch the products widget language between Russian and Romanian.
set_widget_theme
ChatGPTSwitch the products widget theme from text control. Use light, dark, or auto.
submit_order
ChatGPTSubmit a live Kokiko checkout order by syncing the widget cart to Kokiko API and calling the official order endpoint. Returns submitted status, upstream order id, normalized items and total.
sync_cart
ChatGPTInternal cart-session tool used by the widget to create/confirm the backend Kokiko cart session and push the current cart items to it. Not for direct assistant use - use add_to_cart/update_cart_item/check_cart for user-facing cart actions.
update_cart_item
ChatGPTSet product quantity in a cart payload for text-driven cart control, remove the product when quantity is 0, sync numeric product ids to Kokiko cart API, and return structuredContent.cart with the current items, count, total, and sync status. If product_id is unknown, call check_cart first or pass product_name so the active cart can resolve the item by title.