add_item_to_cart_by_ean
Add a product to a Carrefour Drive cart using its EAN, basket service ID, and sub-basket type. Returns updated cart totals and summary for the authenticated user.
Instructions
Adds a product to the authenticated user's cart on Carrefour France using the product EAN, a basket service ID, and a sub-basket type (e.g. drive click-and-collect). Also accepts a tracking context to indicate the page type and page ID from which the action was triggered. Returns updated cart totals and summary. (requires an authenticated Carrefour session)
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": {
"ean": "<ean>",
"basketServiceId": "<basketServiceId>",
"subBasketType": "<subBasketType>"
},
"name": "add_item_to_cart_by_ean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ean | Yes | The EAN (barcode) of the product to add to the cart. | |
| pageId | No | The page ID for tracking purposes (e.g. 'moncompte', a product or category ID). | |
| pageType | No | The page type for tracking purposes (e.g. 'moncompte', 'search', 'pdp'). | |
| subBasketType | Yes | The sub-basket type, such as 'drive_clcv' for drive click-and-collect. | |
| basketServiceId | Yes | The basket service ID identifying the store/drive service to use (e.g. '0678-150-7052'). |