withings_sync
Sync Withings health metrics to a local SQLite cache for offline access and faster queries. Fetches new data incrementally, supporting body, sleep, activity, and workouts.
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 |
|---|---|---|---|
| days | No | ||
| data_types | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |