fitbit_sync
Sync health data from Fitbit to a local cache for offline access. Execute this tool first to fetch heart rate, activity, sleep, and more incrementally.
Instructions
Sync Fitbit health data to the local cache.
Fetches data from the Fitbit API and stores it in SQLite for fast offline queries. Run this before using other fitbit_get_* tools.
Syncs incrementally: only fetches data newer than the most recent entry in each table. First sync fetches the specified number of days.
Args: data_types: What to sync. Options: "all", "heart_rate", "activity", "exercises", "sleep", "weight", "spo2", "hrv". Comma-separated for multiple, e.g. "sleep,hrv". Default: "all". days: Days of history for first sync (default: 30). Ignored on subsequent syncs (uses last synced date).
Returns summary of records synced per data type. Not for querying data - use fitbit_get_heart_rate, fitbit_get_activity, fitbit_get_sleep, etc. instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_types | No | all | |
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |