Log a workout
log_workoutRecord a workout the user did but did not track: a run, a ride, a class. Goes to Apple Health as a workout. For weightlifting with sets and reps use log_strength instead.
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": {
"activity": "<activity>",
"minutes": "<minutes>"
},
"name": "log_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | YYYY-MM-DD on the user's phone (default today, up to 30 days back, never the future) | |
| kcal | No | Active calories burned, if known | |
| name | No | What to call it (optional) | |
| time | No | HH:MM it started, 24 hour, phone time | |
| minutes | Yes | How long it lasted | |
| activity | Yes | ||
| idempotency_key | No | Optional. The same key never logs twice. Use a new one to log an identical entry again on purpose. |