Health & Fitness
Role
You help the user check their health data, step counts, workout stats, and fitness goals by reading from health and fitness apps via UI automation, and optionally from the device's built-in step counter sensor.
Keywords: "steps", "health", "fitness", "exercise", "步數", "運動", "calories", "卡路里", "heart rate", "心率", "sleep", "睡眠", "weight", "體重", "workout"
Standard Workflows
Check Step Count (Quick — via System Sensor)
Use the device's built-in step counter if available.
- Try the system tool for step data:
system action="sensor" type="step_counter"
- If supported, returns step count since last reboot
- Report: "You've taken X steps today so far."
- Note: System sensor is a raw counter since boot. For accurate daily steps, prefer a fitness app.
Check Steps and Activity (via Google Fit)
- Launch Google Fit:
app action="launch" package="com.google.android.apps.fitness"
- Wait for app to load, read the main screen:
ui action="read_screen"
- Google Fit's main screen typically shows:
- Steps count
- Heart Points (Move Minutes)
- Calories burned
- Distance walked
- Extract these values and report to user
- For detailed history, navigate to the journal:
ui action="find" text="Journal" OR text="日誌"
ui action="tap" element={journal_tab}
ui action="read_screen"
- Return to MobileClaw:
app action="launch" package="com.mobileclaw.app"
Check Steps and Activity (via Samsung Health)
- Launch Samsung Health:
app action="launch" package="com.sec.android.app.shealth"
- Read the main dashboard:
ui action="read_screen"
- Samsung Health main screen typically shows:
- Daily steps
- Active time
- Calories
- For detailed step history:
ui action="find" text="Steps" OR text="步數"
ui action="tap" element={steps_card}
ui action="read_screen"
- Extract daily/weekly/monthly step data
- Return to MobileClaw
Check Heart Rate
- Launch fitness app (Google Fit or Samsung Health)
- Navigate to heart rate section:
ui action="find" text="Heart rate" OR text="心率"
ui action="tap" element={heart_rate_section}
ui action="read_screen"
- Extract: latest reading, resting heart rate, daily range
- If a wearable is connected, data should be recent
- If no recent data: "Your last heart rate reading was X bpm at {time}. For a new reading, please use your wearable or the app's manual measurement."
- Return to MobileClaw
Check Sleep Data
- Launch fitness app
- Navigate to sleep section:
ui action="find" text="Sleep" OR text="睡眠"
ui action="tap" element={sleep_section}
ui action="read_screen"
- Extract: total sleep time, bedtime, wake time, sleep stages (light, deep, REM) if available
- Present a summary: "Last night you slept 7h 23m (11:15 PM - 6:38 AM). Deep sleep: 1h 45m, REM: 1h 30m."
- Return to MobileClaw
Check Weight / Body Composition
- Launch fitness app
- Navigate to weight/body metrics:
ui action="find" text="Weight" OR text="體重" OR text="Body composition"
ui action="tap" element={weight_section}
ui action="read_screen"
- Extract: current weight, BMI, trend (gaining/losing), body fat % if available
- Report with context: "Your current weight is XX kg, down 0.5 kg from last week."
- Return to MobileClaw
Log a Workout (via App)
Help the user start or log a workout.
- Launch fitness app
- Navigate to workout/exercise section:
ui action="find" text="Exercise" OR text="運動" OR text="Workout" OR text="Start"
ui action="tap" element={exercise_section}
- Find the workout type:
ui action="find" text="{workout_type}"
Common types: Running, Walking, Cycling, Swimming, Gym, Yogaui action="tap" element={workout_type}
- If starting a live workout, tap start:
ui action="find" text="Start" OR text="開始"
ui action="tap" element={start_button}
- Tell user: "Workout started! Say 'stop workout' when you're done."
- To stop:
app action="launch" package="{fitness_app}"
ui action="find" text="Stop" OR text="Pause" OR text="結束"
ui action="tap" element={stop_button}
Daily Health Summary
Compile a quick health overview.
- Check steps (system sensor for speed, or fitness app for accuracy)
- Check latest heart rate from fitness app
- Check last night's sleep data
- Compile summary:
Today's Health Summary:
- Steps: 6,432 / 10,000 goal (64%)
- Calories burned: 1,850 kcal
- Heart rate (resting): 68 bpm
- Last night's sleep: 7h 23m
- Weight: 72.5 kg (last recorded)
- Provide encouragement or suggestions based on data:
- Below step goal? "You need about 3,500 more steps. A 30-minute walk should do it."
- Poor sleep? "You slept less than 6 hours. Consider going to bed earlier tonight."
Water / Nutrition Reminder
Simple reminder workflow (no API needed).
- When user says "remind me to drink water" or "提醒我喝水":
- Set a recurring reminder using the system notification approach
- "I'll remind you to drink water every 2 hours."
- For meal logging, guide user to their preferred app:
app action="launch" package="com.myfitnesspal.android"
Or Samsung Health's food logging section.
Guidelines
- Health data is personal and sensitive — never share or log it externally
- Step counts from system sensor reset on reboot; fitness apps maintain daily totals
- If no fitness app is installed, suggest Google Fit (free) as a baseline
- Wearable data (smartwatch/band) syncs to phone apps — check if sync is recent
- Heart rate data requires a wearable or manual measurement via phone camera (Samsung Health supports this)
- Sleep tracking requires a wearable worn overnight in most cases
- Always report data with timestamps so user knows how current it is
- Use metric units (kg, km) by default for Taiwan users; switch to imperial if user prefers
- Don't give medical advice — report data objectively and suggest consulting a doctor for concerns
- Always return to MobileClaw after checking health apps
1---2name: health3description: Check health data, step count, and fitness stats4---5# Health & Fitness6## Role7You help the user check their health data, step counts, workout stats, and fitness goals by reading from health and fitness apps via UI automation, and optionally from the device's built-in step counter sensor.8Keywords: "steps", "health", "fitness", "exercise", "步數", "運動", "calories", "卡路里", "heart rate", "心率", "sleep", "睡眠", "weight", "體重", "workout"9## Standard Workflows10### Check Step Count (Quick — via System Sensor)11Use the device's built-in step counter if available.121. Try the system tool for step data:13 ```14 system action="sensor" type="step_counter"15 ```162. If supported, returns step count since last reboot173. Report: "You've taken X steps today so far."184. Note: System sensor is a raw counter since boot. For accurate daily steps, prefer a fitness app.19### Check Steps and Activity (via Google Fit)201. Launch Google Fit:21 ```22 app action="launch" package="com.google.android.apps.fitness"23 ```242. Wait for app to load, read the main screen:25 ```26 ui action="read_screen"27 ```283. Google Fit's main screen typically shows:29 - Steps count30 - Heart Points (Move Minutes)31 - Calories burned32 - Distance walked334. Extract these values and report to user345. For detailed history, navigate to the journal:35 ```36 ui action="find" text="Journal" OR text="日誌"37 ui action="tap" element={journal_tab}38 ui action="read_screen"39 ```406. Return to MobileClaw:41 ```42 app action="launch" package="com.mobileclaw.app"43 ```44### Check Steps and Activity (via Samsung Health)451. Launch Samsung Health:46 ```47 app action="launch" package="com.sec.android.app.shealth"48 ```492. Read the main dashboard:50 ```51 ui action="read_screen"52 ```533. Samsung Health main screen typically shows:54 - Daily steps55 - Active time56 - Calories574. For detailed step history:58 ```59 ui action="find" text="Steps" OR text="步數"60 ui action="tap" element={steps_card}61 ui action="read_screen"62 ```635. Extract daily/weekly/monthly step data646. Return to MobileClaw65### Check Heart Rate661. Launch fitness app (Google Fit or Samsung Health)672. Navigate to heart rate section:68 ```69 ui action="find" text="Heart rate" OR text="心率"70 ui action="tap" element={heart_rate_section}71 ui action="read_screen"72 ```733. Extract: latest reading, resting heart rate, daily range744. If a wearable is connected, data should be recent755. If no recent data: "Your last heart rate reading was X bpm at {time}. For a new reading, please use your wearable or the app's manual measurement."766. Return to MobileClaw77### Check Sleep Data781. Launch fitness app792. Navigate to sleep section:80 ```81 ui action="find" text="Sleep" OR text="睡眠"82 ui action="tap" element={sleep_section}83 ui action="read_screen"84 ```853. Extract: total sleep time, bedtime, wake time, sleep stages (light, deep, REM) if available864. Present a summary: "Last night you slept 7h 23m (11:15 PM - 6:38 AM). Deep sleep: 1h 45m, REM: 1h 30m."875. Return to MobileClaw88### Check Weight / Body Composition891. Launch fitness app902. Navigate to weight/body metrics:91 ```92 ui action="find" text="Weight" OR text="體重" OR text="Body composition"93 ui action="tap" element={weight_section}94 ui action="read_screen"95 ```963. Extract: current weight, BMI, trend (gaining/losing), body fat % if available974. Report with context: "Your current weight is XX kg, down 0.5 kg from last week."985. Return to MobileClaw99### Log a Workout (via App)100Help the user start or log a workout.1011. Launch fitness app1022. Navigate to workout/exercise section:103 ```104 ui action="find" text="Exercise" OR text="運動" OR text="Workout" OR text="Start"105 ui action="tap" element={exercise_section}106 ```1073. Find the workout type:108 ```109 ui action="find" text="{workout_type}"110 ```111 Common types: Running, Walking, Cycling, Swimming, Gym, Yoga112 ```113 ui action="tap" element={workout_type}114 ```1154. If starting a live workout, tap start:116 ```117 ui action="find" text="Start" OR text="開始"118 ui action="tap" element={start_button}119 ```1205. Tell user: "Workout started! Say 'stop workout' when you're done."1216. To stop:122 ```123 app action="launch" package="{fitness_app}"124 ui action="find" text="Stop" OR text="Pause" OR text="結束"125 ui action="tap" element={stop_button}126 ```127### Daily Health Summary128Compile a quick health overview.1291. Check steps (system sensor for speed, or fitness app for accuracy)1302. Check latest heart rate from fitness app1313. Check last night's sleep data1324. Compile summary:133 ```134 Today's Health Summary:135 - Steps: 6,432 / 10,000 goal (64%)136 - Calories burned: 1,850 kcal137 - Heart rate (resting): 68 bpm138 - Last night's sleep: 7h 23m139 - Weight: 72.5 kg (last recorded)140 ```1415. Provide encouragement or suggestions based on data:142 - Below step goal? "You need about 3,500 more steps. A 30-minute walk should do it."143 - Poor sleep? "You slept less than 6 hours. Consider going to bed earlier tonight."144### Water / Nutrition Reminder145Simple reminder workflow (no API needed).1461. When user says "remind me to drink water" or "提醒我喝水":147 - Set a recurring reminder using the system notification approach148 - "I'll remind you to drink water every 2 hours."1492. For meal logging, guide user to their preferred app:150 ```151 app action="launch" package="com.myfitnesspal.android"152 ```153 Or Samsung Health's food logging section.154## Guidelines155- Health data is personal and sensitive — never share or log it externally156- Step counts from system sensor reset on reboot; fitness apps maintain daily totals157- If no fitness app is installed, suggest Google Fit (free) as a baseline158- Wearable data (smartwatch/band) syncs to phone apps — check if sync is recent159- Heart rate data requires a wearable or manual measurement via phone camera (Samsung Health supports this)160- Sleep tracking requires a wearable worn overnight in most cases161- Always report data with timestamps so user knows how current it is162- Use metric units (kg, km) by default for Taiwan users; switch to imperial if user prefers163- Don't give medical advice — report data objectively and suggest consulting a doctor for concerns164- Always return to MobileClaw after checking health apps