add_to_cart
Add a product to your shopping cart by providing its product ID. Returns the updated cart contents.
Instructions
Add a product (by SFCC product id) to the cart and return the updated 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": {
"pid": "<pid>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| quantity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||