Loki Docs
Tools › Foods › List my ingredients

List my ingredients

list_my_ingredientsReads
What it does
Reads only. Changes nothing.
Permission
Foods, read foods:read

What your assistant is told

The foods this user actually eats, most used first, including the ones they added by photographing a label (from_label). Their own private foods and the catalog products they have logged, in one ranked list: pinned first, then most-used-and-recent, with use_count and last_used_at on every row. CALL THIS ONCE before you log a meal the user described or photographed. When a component is a generic word — "corn", "yogurt", "oats" — use their food's id as food_id in log_meal and SAY WHICH ONE YOU PICKED. Only estimate a component inline, or reach for search_foods, when nothing of theirs matches. Never assume a match from a vague name: if two of theirs could fit, ask which. Report what they use plainly — "14x" — and never as a finding about their habits.

Parameters

  • querytext, optionalOptional name or brand fragment to narrow the list, e.g. "corn". Omit for all of them.
  • limitwhole number, optionalMax results (default 50, capped at 200).