update_cart_item
Change the quantity of a specific part in your Mouser cart using the cart key and part number. Set quantity to 0 to remove the item.
Instructions
Update the quantity of an item in the cart.
Changes the quantity of an existing cart item. To remove an item, set quantity to 0.
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": {
"cart_key": "<cart_key>",
"mouser_part_number": "<mouser_part_number>",
"quantity": "<quantity>"
},
"name": "update_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_key | Yes | Unique cart identifier | |
| quantity | Yes | New quantity (0 to remove item) | |
| mouser_part_number | Yes | Mouser part number to update |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||