Change quantity in cart
foran_cart_updateUpdates the quantity for a specified cart line using its cart ID, and sets quantity to 0 to remove the item.
Instructions
Set a new quantity for one cart line (cart_id from foran_cart_view). Quantity 0 removes it.
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": {
"session_key": "<session_key>",
"cart_id": "<cart_id>",
"quantity": "<quantity>"
},
"name": "foran_cart_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | mart = groceries and daily needs; bites = restaurant food. | mart |
| cart_id | Yes | ||
| quantity | Yes | ||
| session_key | Yes | The session_key returned by foran_login. |