add_items
Adds one or more grocery items to a Listonic list in a single call, checking existing entries first to prevent duplicate rows and keep quantities accurate.
Instructions
Add one or more items to a list in a single call; new items start unchecked. Put only the product in name (in the user's language, e.g. "mleko"), the number in amount and the unit in unit - never the quantity inside the name. Before adding, call get_items and check whether the item already exists. If it's checked, untick it and set the amount the user gave. If it's unchecked, ask whether to add to its amount or replace it. Don't create a duplicate row. Returns the added items in get_items format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Items to add | |
| listId | Yes | The list ID (from get_lists) | |
| listName | Yes | The list's name exactly as get_lists shows it. Shown in the permission prompt so the user can confirm the right list; not sent to the API. |