Implementation
gradeNot graded
gradeNot graded
page: Every page
search_productsAnswer
Search products in this store by text, price range and stock availability. Returns product ids, names, prices and availability. To show a product to the user, call open_product with its id.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search products in this store by text, price range and stock availability. Returns product ids, names, prices and availability. To show a product to the user, call open_product with its id.",
"inputSchema": {
"type": "object",
"properties": {
"phrase": {
"type": "string",
"description": "Search text, e.g. \"Bauer hockey stick\"."
},
"priceFrom": {
"type": "number",
"minimum": 0,
"description": "Minimum price in the store currency."
},
"priceTo": {
"type": "number",
"minimum": 0,
"description": "Maximum price in the store currency."
},
"inStockOnly": {
"type": "boolean",
"description": "Return only products in stock."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "Defaults to 10."
}
},
"required": [
"phrase"
],
"additionalProperties": false
},
"page": "/"
}open_productAction
Open the product detail page in the current tab. Use a product id returned by search_products.
View tool JSON
{
"name": "open_product",
"kind": "act",
"impl": "imperative",
"description": "Open the product detail page in the current tab. Use a product id returned by search_products.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"format": "uuid",
"description": "Product id from search_products."
}
},
"required": [
"productId"
],
"additionalProperties": false
},
"page": "/"
}