health_log_workout
Record a workout session with exercise type, start and end times, and optional notes for sets, reps, and weight. Preview before writing to your Fitbit/Google Health account using idempotent sync.
Instructions
寫入運動或重訓場次。逐組重量、次數和動作可保存在 notes;需要實際開始與結束時間。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"exercise_type": "<exercise_type>",
"start_time": "<start_time>",
"end_time": "<end_time>",
"idempotency_key": "<idempotency_key>"
},
"name": "health_log_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| dry_run | No | 預設只預覽。使用者要求實際寫入後設 false。 | |
| end_time | Yes | 附時區的 RFC3339 時間,例如 2026-10-04T18:00:00+08:00;不可猜測缺少的時間。 | |
| start_time | Yes | 附時區的 RFC3339 時間,例如 2026-10-04T18:00:00+08:00;不可猜測缺少的時間。 | |
| distance_km | No | ||
| display_name | No | ||
| calories_kcal | No | ||
| exercise_type | Yes | ||
| active_minutes | No | ||
| idempotency_key | Yes | 每筆來源紀錄的穩定唯一鍵;同一鍵不同資料會拒絕。 |