Tool tree
gradeNot graded
search_catalogAnswer
Search the store catalog for products. Returns products with id, sku, name, url, image, price (incl. tax), price_excl_tax, original_price (when discounted), in_stock and type_id. Does NOT modify the cart; use add_to_cart for that. To show a product to the user, call open_page with the product url.
View tool JSON
{
"name": "search_catalog",
"kind": "answer",
"impl": "imperative",
"description": "Search the store catalog for products. Returns products with id, sku, name, url, image, price (incl. tax), price_excl_tax, original_price (when discounted), in_stock and type_id. Does NOT modify the cart; use add_to_cart for that. To show a product to the user, call open_page with the product url.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Search query, e.g. a product name or SKU."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 8
}
}
},
"page": "/b2c_fr/"
}get_cartAnswer
Get the current shopping cart contents: line items with sku, name, qty, unit price, selected options and item_id, plus item count and subtotal. Works on any page.
View tool JSON
{
"name": "get_cart",
"kind": "answer",
"impl": "imperative",
"description": "Get the current shopping cart contents: line items with sku, name, qty, unit price, selected options and item_id, plus item count and subtotal. Works on any page.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/b2c_fr/"
}add_to_cartAction
Add a product to the cart by its numeric product id (the id field returned by search_catalog). Works for simple products. For configurable products (type_id "configurable") the variant must be chosen on the product page — use open_page with the product url instead and tell the user to pick the options.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the cart by its numeric product id (the id field returned by search_catalog). Works for simple products. For configurable products (type_id \"configurable\") the variant must be chosen on the product page — use open_page with the product url instead and tell the user to pick the options.",
"inputSchema": {
"type": "object",
"required": [
"product_id"
],
"properties": {
"product_id": {
"type": "integer",
"description": "Product id from search_catalog."
},
"qty": {
"type": "integer",
"minimum": 1,
"default": 1
}
}
},
"page": "/b2c_fr/"
}open_pageAction
Navigate the browser to a page of this store (a product url from search_catalog, a category, the cart page, etc.). Only same-origin store URLs are allowed. When this tool succeeds the browser is ALREADY navigating to the page — do not navigate again and do not tell the user to click links; just answer referencing the url.
View tool JSON
{
"name": "open_page",
"kind": "act",
"impl": "imperative",
"description": "Navigate the browser to a page of this store (a product url from search_catalog, a category, the cart page, etc.). Only same-origin store URLs are allowed. When this tool succeeds the browser is ALREADY navigating to the page — do not navigate again and do not tell the user to click links; just answer referencing the url.",
"inputSchema": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Absolute store URL or path, e.g. \"/checkout/cart\"."
}
}
},
"page": "/b2c_fr/"
}proceed_to_checkoutAction
Go to checkout. Verifies the cart is not empty, then navigates the browser to the checkout page. When this tool succeeds the browser is ALREADY navigating to checkout — do not navigate again and do not tell the user to click a checkout button.
View tool JSON
{
"name": "proceed_to_checkout",
"kind": "act",
"impl": "imperative",
"description": "Go to checkout. Verifies the cart is not empty, then navigates the browser to the checkout page. When this tool succeeds the browser is ALREADY navigating to checkout — do not navigate again and do not tell the user to click a checkout button.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/b2c_fr/"
}