Tool tree
gradeNot graded
page: Every page
list_productsAnswer
List products this store is selling on the current page. Use this to read the open catalog.
View tool JSON
{
"name": "list_products",
"kind": "answer",
"impl": "imperative",
"description": "List products this store is selling on the current page. Use this to read the open catalog.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/demo"
}search_productsAnswer
Search this store’s current page catalog by keyword. Does not search other stores.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search this store’s current page catalog by keyword. Does not search other stores.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search text, e.g. headphones or milk"
}
},
"required": [
"query"
]
},
"page": "/demo"
}add_to_cartAction
Add a SKU from this store’s current catalog to this store’s cart. Fails if the SKU is not on this page.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a SKU from this store’s current catalog to this store’s cart. Fails if the SKU is not on this page.",
"inputSchema": {
"type": "object",
"properties": {
"skuId": {
"type": "string"
},
"quantity": {
"type": "integer",
"minimum": 1
}
},
"required": [
"skuId"
]
},
"page": "/demo"
}get_cartAnswer
Read this store’s cart.
View tool JSON
{
"name": "get_cart",
"kind": "answer",
"impl": "imperative",
"description": "Read this store’s cart.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/demo"
}remove_from_cartAction
Remove one SKU line from this store’s cart.
View tool JSON
{
"name": "remove_from_cart",
"kind": "act",
"impl": "imperative",
"description": "Remove one SKU line from this store’s cart.",
"inputSchema": {
"type": "object",
"properties": {
"skuId": {
"type": "string"
}
},
"required": [
"skuId"
]
},
"page": "/demo"
}list_storesAnswer
List the demo storefronts (nilemart, widemart, darthouse) and which one is currently open. Call this before switch_store if you do not know the storeId.
View tool JSON
{
"name": "list_stores",
"kind": "answer",
"impl": "imperative",
"description": "List the demo storefronts (nilemart, widemart, darthouse) and which one is currently open. Call this before switch_store if you do not know the storeId.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/demo"
}switch_storeAction
Open another storefront page in this demo. The shared cart is kept. Use when the shopper wants a different store, or when add_to_cart failed because the SKU is not on this page.
View tool JSON
{
"name": "switch_store",
"kind": "act",
"impl": "imperative",
"description": "Open another storefront page in this demo. The shared cart is kept. Use when the shopper wants a different store, or when add_to_cart failed because the SKU is not on this page.",
"inputSchema": {
"type": "object",
"properties": {
"storeId": {
"type": "string",
"enum": [
"nilemart",
"widemart",
"darthouse"
],
"description": "nilemart = marketplace (electronics), widemart = value/grocery, darthouse = home/style."
}
},
"required": [
"storeId"
]
},
"page": "/demo"
}open_uiAction
Show the shared shopping cart island on this page so the shopper can see items and the current total.
View tool JSON
{
"name": "open_ui",
"kind": "act",
"impl": "imperative",
"description": "Show the shared shopping cart island on this page so the shopper can see items and the current total.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/demo"
}