Change your supply cart
update_supply_cartChange the signed-in member's supply cart (the same cart as the website's product pages). action "add" adds qty of a product (product_id from shop_supplies; option is the option's label for a product with options), on top of any already there. "set" sets a product's quantity (0 removes it). "remove" takes a product out. "clear" empties the cart. Nothing is bought or charged. Say what changed and the cart's new total from the result.
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": {
"action": "<action>"
},
"name": "update_supply_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | For add (default 1) or set. | |
| action | Yes | ||
| option | No | The option's label, e.g. '#1005'. | |
| product_id | No |