set_cart_item
Set a cart item to an exact quantity, using 0 to remove it; provide the current search price for the explicit cart write.
Instructions
Change cart item to an absolute quantity (0 removes). Explicit cart write; price must be from current search. Never retries ambiguous writes.
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": {
"longitude": "<longitude>",
"latitude": "<latitude>",
"product_id": "<product_id>",
"quantity": "<quantity>",
"price": "<price>"
},
"name": "set_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| latitude | Yes | ||
| quantity | Yes | ||
| longitude | Yes | ||
| product_id | Yes |