Implementation
gradeNot graded
gradeNot graded
page: Every page
search_productsAnswer
Search the shop catalog by keyword. Returns matching products with name, price, permalink, and stock status.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search the shop catalog by keyword. Returns matching products with name, price, permalink, and stock status.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search term"
},
"per_page": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [
"query"
]
},
"page": "/"
}view_cartAnswer
Return the current shopping cart contents (items, totals) for the active session.
View tool JSON
{
"name": "view_cart",
"kind": "answer",
"impl": "imperative",
"description": "Return the current shopping cart contents (items, totals) for the active session.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}add_to_cartAction
Add a product to the shopping cart by product id. Returns the updated cart.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the shopping cart by product id. Returns the updated cart.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "WooCommerce product id"
},
"quantity": {
"type": "integer",
"minimum": 1,
"default": 1
}
},
"required": [
"id"
]
},
"page": "/"
}