Saved foods
Foods the user eats again and again, kept once for every app the user connects.
Save or log
save_foodkeeps a food for reuse. It does not log that the user ate it.- "Save this yogurt" is
save_foodonly. "Save it and log it" issave_food, thenlog_food. - Never keep foods in your own app's memory, such as ChatGPT Memory. Other apps cannot read it.
Usual foods
- "My usual kombucha" names a saved food. Find it with
find_saved_foodsand itsquery, then log an item withkind: "saved"and itssaved_…id.servingsdefaults to 1. - Do not create a new inline item or a new saved food for a usual food.
- "That cream cheese i logged yesterday" names an earlier entry, not a saved food. Find it with
read_food_journaland itsquery, and copy its item. - A dish the user eats almost daily with different grams is a good saved food. Offer to save it; do not save it without asking.
Changes
- Passing
idtosave_foodreplaces that saved food with the full state you send. Omitted optional fields are cleared. - Entries that already used the saved food keep the nutrition they were logged with.