withings_sync
Sync Withings health data to local cache for offline access. Fetches body, sleep, activity, and workout metrics from Withings API and stores them in SQLite. Run before querying data with other tools.
Instructions
Sync Withings health data to the local cache.
Fetches data from the Withings API and stores it in SQLite for fast offline queries. Run this before using other withings_get_* tools.
Syncs incrementally: only fetches data newer than the last sync. First sync fetches the specified number of days of history.
Args: data_types: What to sync. Options: "all", "body", "sleep", "activity", "workouts". Comma-separated for multiple, e.g. "body,sleep". Default: "all". days: Days of history for first sync (default: 30). Ignored on subsequent syncs (uses last sync timestamp).
Returns summary of records synced per data type. Not for querying data - use withings_get_body, withings_get_sleep, withings_get_activity, or withings_get_workouts instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_types | No | all | |
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |