Add to Walmart.ca cart
add_to_cartAdds a product to a signed-in Walmart.ca cart, increasing any existing quantity and returning the updated cart line and subtotal without checking out.
Instructions
Add a product to the signed-in Walmart.ca cart (adds to any quantity already there). Does not check out or place an order. Returns the cart line and the new subtotal. Needs a signed-in profile.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product": "<product>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | Product id from search_products or a walmart.ca/en/ip/... URL | |
| quantity | No | Units to add (default 1) |