get_items
Retrieves every item on a Listonic grocery list, unchecked items first, to show what to buy and get item IDs before editing, deleting, or adding items.
Instructions
Get every item on one list. Unchecked items (still to buy) come first, then checked ones (bought / ticked off), each as "[ ] [itemId] name (amount unit)" or "[x] …". When the user asks what to buy, report only unchecked items; mention checked ones only if asked. Call this before edit_items or delete_items to get itemIds, and before add_items to avoid duplicates. Several rows can share a name. When the user names such an item, tick or untick every row the change applies to (only unchecked rows when ticking off). Before deleting it or changing its amount, consider only unchecked rows unless the user means a checked one: if one row matches, act on it; if several match, ask which one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |