withings_sync
Sync Withings health data to a local SQLite cache for offline queries. Run before using other withings_get_* tools. Incremental updates fetch only new data; first sync pulls specified days of history.
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 |