add_items_to_cart
Add grocery items to a Kroger shopping cart via product ID or UPC, specifying quantity and fulfillment method (PICKUP or DELIVERY). Confirms cart update for streamlined grocery ordering.
Instructions
Add a single item to the user's Kroger cart and track it locally.
If the user doesn't specifically indicate a preference for pickup or delivery,
you should ask them which modality they prefer before calling this tool.
Args:
product_id: The product ID or UPC to add to cart
quantity: Quantity to add (default: 1)
modality: Fulfillment method - PICKUP or DELIVERY
Returns:
Dictionary confirming the item was added to cart
Input Schema
Name | Required | Description | Default |
---|---|---|---|
modality | No | PICKUP | |
product_id | Yes | ||
quantity | No |
Input Schema (JSON Schema)
{
"properties": {
"modality": {
"default": "PICKUP",
"title": "Modality",
"type": "string"
},
"product_id": {
"title": "Product Id",
"type": "string"
},
"quantity": {
"default": 1,
"title": "Quantity",
"type": "integer"
}
},
"required": [
"product_id"
],
"type": "object"
}