log_food
Log a food to a meal in your diary. Specify portion via serving amount and unit or servings multiplier. Use dry run to preview.
Instructions
Log a food to a meal in the diary. Specify the portion EITHER as serving_amount + serving_unit (e.g. 120 and 'g') OR as servings (a multiplier of the food's default serving). Set dry_run to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Day to log to: 'YYYY-MM-DD', 'today', or 'yesterday'. | |
| meal | No | One of: breakfast, lunch, dinner, snacks. | snacks |
| dry_run | No | Preview the result without writing to the diary. | |
| food_id | Yes | 32-character hex food ID from search_food. | |
| servings | No | Multiplier of the food's default serving. | |
| serving_unit | No | Unit for `serving_amount`, e.g. 'g', 'mL', 'cup', 'oz'. | |
| serving_amount | No | Quantity in `serving_unit`, e.g. 120. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||