complete_workout_session
Finalize workouts by saving only logged sets, leaving pending sets unlogged, and creating one linked activity summary.
Instructions
Save only logged sets, leaving pending sets unlogged. Creates one linked activity summary.
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": {
"session_id": "<session_id>",
"expected_revision": "<expected_revision>"
},
"name": "complete_workout_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | No | Stable caller-generated ID; reuse the same ID when retrying the same operation | |
| session_id | Yes | User-owned resource ID returned by a read tool | |
| occurred_at | No | Optional original event time with UTC offset, for offline replay | |
| healthkit_uuid | No | Optional HealthKit UUID for the same workout | |
| expected_revision | Yes | Current revision returned by the resource; prevents overwriting a newer edit |