cart_add_with_retry
Adds a product to the cart; if the product ID is invalid, it automatically searches for the correct ID and retries.
Instructions
Add item to cart with automatic ID correction.
If the initial add fails due to ID format issues and auto_correct_ids=True, this will search for the product and retry with the correct IDs.
This is a more resilient version of cart_add that can recover from incorrect ID formats by looking up the product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku_id | No | SKU ID | |
| confirm | No | Set to true to confirm | |
| quantity | No | Quantity to add | |
| product_id | Yes | HEB product ID | |
| auto_correct_ids | No | Attempt to auto-correct IDs if add fails |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||