Record and track daily nutrition intake through food photos. Analyze nutritional content including calories, protein, fat, carbohydrates, vitamins, and minerals. Use when user wants to log meals, track nutrition, or analyze dietary habits.
Record daily meals through photos or uploads, automatically analyze nutritional content, and track nutritional intake.
User Input → Identify Operation Type → [add] Analyze Image → Nutrition Analysis → Save Record
↓
[history/status/summary] → Read Data → Display Report
| Input Keywords | Operation Type |
|---|---|
| add | add - Add diet record |
| history | history - View history records |
| status | status - Nutrition statistics |
| summary | summary - Nutrition summary |
| Time Range | Meal Type |
|---|---|
| 05:00 - 09:59 | Breakfast |
| 10:00 - 14:59 | Lunch |
| 15:00 - 16:59 | Afternoon Tea |
| 17:00 - 21:59 | Dinner |
| 22:00 - 04:59 | Late Night Snack |
image - Food photo pathmeal_time - Meal time (defaults to current time)Please provide a food photo. You can drag and drop or specify the path.
Cannot read the image. Please check if the path is correct.
Supported formats: JPG, PNG, WebP
Invalid time format. Please use HH:mm or YYYY-MM-DD HH:mm format
Example: 12:30 or 2025-12-30 12:30
{
"id": "20251231123456789",
"record_date": "2025-12-31",
"meal_time": "12:30",
"meal_type": "Lunch",
"image_path": "food.jpg",
"foods": [
{
"name": "Rice",
"portion": "1 bowl (about 150g)",
"weight_estimate": 150,
"cooking_method": "Steamed",
"confidence": 0.95
}
],
"nutrition": {
"calories": {
"value": 485,
"unit": "kcal"
},
"macronutrients": {
"protein": { "value": 15.2, "unit": "g" },
"fat": { "value": 18.5, "unit": "g" },
"carbohydrate": { "value": 60.3, "unit": "g" },
"fiber": { "value": 6.2, "unit": "g" }
},
"vitamins": {
"vitamin_a": { "value": 245, "unit": "μg" },
"vitamin_c": { "value": 35, "unit": "mg" }
},
"minerals": {
"calcium": { "value": 45, "unit": "mg" },
"iron": { "value": 2.8, "unit": "mg" }
}
},
"health_score": {
"overall": 7.5,
"balance": 8.0,
"variety": 7.0,
"nutrition_density": 7.5
}
}
data/diet-records/YYYY-MM/YYYY-MM-DD_HHMM.jsondata/index.json1. Parse user input, identify operation type
2. For add operation:
a. Use Read tool to read image
b. Analyze food types and portions
c. Calculate nutritional content
d. Save record to data/diet-records/
3. For history operation: Display diet history
4. For status operation: Display nutrition statistics
5. For summary operation: Display nutrition summary
For more examples, see examples.md.