| metadata | {"openclaw":{"capabilities":["order"],"commands":[{"name":"order.getGoods","description":"Get the menu / goods list (id, name, price).","params":[]},{"name":"order.getSelectedGoods","description":"Get current cart / selected items.","params":[]},{"name":"order.addGoods","description":"Add a product to the cart by id or name (fuzzy). Default quantity 1.","params":[{"name":"id","type":"string","description":"Goods ID from the menu (e.g. \"1\")."},{"name":"name","type":"string","description":"Goods name, supports fuzzy match (e.g. \"拿铁\", \"美式\")."},{"name":"quantity","type":"string","description":"Quantity, default \"1\"."}]},{"name":"order.removeGoods","description":"Remove a product from the cart by id or name.","params":[{"name":"id","type":"string","description":"Goods ID."},{"name":"name","type":"string","description":"Goods name (fuzzy)."},{"name":"quantity","type":"string","description":"Quantity to remove, default \"1\"."}]},{"name":"order.clearGoods","description":"Clear all items in the cart.","params":[]},{"name":"order.submitOrder","description":"Submit the current cart as an order (demo; no real payment).","params":[]},{"name":"order.batchAddGoods","description":"Add multiple items at once. list is JSON array [{\"id\":\"1\",\"quantity\":2},...].","params":[{"name":"list","type":"string","description":"JSON array of objects with id and quantity."}]}]}} |