update_cart
Update the quantity of an item in your Walmart cart using its product ID or partial product name.
Instructions
Update the quantity of an item in the Walmart cart
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": {
"quantity": "<quantity>"
},
"name": "update_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | No | Walmart product item ID to update | |
| quantity | Yes | New quantity (must be >= 1) | |
| product_name | No | Partial product name to identify item (alternative to item_id) |