add_to_cart
Add a product to the shopping cart by specifying the product ID and quantity. Enables cart updates during natural language shopping interactions for Walmart backend.
Instructions
Add a product to the shopping cart with specified quantity
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": {
"productId": "<productId>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Quantity of the product to add (default: 1) | |
| productId | Yes | The ID of the product to add to cart |