log_anything
Log food, drinks, water, exercise, or a weigh-in from one natural-language sentence — the same parser as the app's voice logging. Examples: 'two eggs and toast', '30 minute run', '3 glasses of water', 'weighed 184 this morning'. Spoken dates like 'yesterday I had pizza' work. Describe the FOOD, not just numbers: stating explicit nutrition in the text ('burrito, 800 calories') pins those totals exactly but logs ONE pre-computed item with no ingredient breakdown — if you do that, follow up with update_log's ingredients array so the log keeps its per-item detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What to log, in plain words. | |
| logged_at | No | Bare-local timestamp YYYY-MM-DDThh:mm:ss (no zone). Omit to use the user's 'now'. | |
| tz_offset_min | No | The user's JS getTimezoneOffset() — minutes BEHIND UTC (e.g. 240 for EDT). Optional: when omitted, the user's app-reported timezone is used (UTC only if the account has never reported one). |