log_food
Log the grams of food eaten, using a catalog product or custom name with macros. Returns the new food log entry ID.
Instructions
Log that grams of a food were eaten. Pass exactly one of: product_id (from
find_product, for a Catalog item) or name + macros (per 100g, model-supplied,
for a one-off — always recorded as estimated). at defaults to now; the stored
date is derived via the 04:00 Europe/Amsterdam day rule, not a calendar date.
Returns the new food_log id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| name | No | ||
| grams | Yes | ||
| macros | No | ||
| entered_as | No | ||
| product_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |