Inventory belongs in the handler
The schema checks the quantity type. The handler checks remaining stock, including items already in the cart. Try adding 10 backpacks to see an intentional failure.
Industry playground / Commerce
Search a catalog, check inventory, and build a demo cart with the same functions an agent can call.
What this example teaches
The schema checks the quantity type. The handler checks remaining stock, including items already in the cart. Try adding 10 backpacks to see an intentional failure.
The checkout tool creates a review. Only the visible confirmation control completes this fictional order. A real shop would verify prices, inventory and authorization on its server.
Common questions
No. Products and prices are fixtures. The cart lives only in this browser page and resets on reload.
Connect the tool handlers to your authorized storefront cart operations and keep checkout in your existing purchase flow. This example is not a Shopify integration.
API references reviewed September 7, 2026.Chrome imperative API