Set today's session
set_today_sessionWrites the session the athlete will do today or tomorrow (date must be one of those, in the athlete's time zone). Give blocks (kind back (shown as Foundation), strength, mobility or other) of items, each an exercise id from list_exercises with a prescription (method reps, hold or time; sets; bothSides; restSeconds; optional weightKg and cue). bothSides plays each set Left then Right; it must match the exercise's sides in list_exercises (together → false, each → true), or the write is rejected. Each exercise has a kind; put it in a block of that kind (an exercise without a kind goes in an other block). timeBudgetMinutes is optional: how long the athlete has. coachNote is shown to the athlete on Today. The server owns the session's id, revision, status, change list and time estimate and fills them in. The prescription is stored as written: the server does not apply the athlete's rules, cap load or adjust for pain. An item above its ladder's current level is set to that level and listed in changes; preview is what Today will show. A session that has started, finished or been abandoned can't be replaced. A rejected write returns every reason. To split the day, send parts instead of blocks: 2–3 parts with a label each (e.g. Morning, Afternoon) and their own blocks (coachNote and timeBudgetMinutes go on each part, not the top level); the whole day stays within 90 minutes and each exercise once. Started parts are kept. Sending blocks to a split day merges it back into one session (not allowed once a later part has started); a day whose one session has started can't be split. parts in the result says which parts were written, kept and withdrawn. For a superset or circuit, put its exercises in their own block with rounds: true: the app plays set 1 of each in order, then set 2 of each. Rest after a set is that item's restSeconds, so give every item but the last 0 (or a short walk-over) and the last the rest between rounds. Set counts may differ; an item with fewer sets drops out of the later rounds. In a round where the last item has dropped out, the rest after the round is the rest of the last item still playing. A rounds block needs 2 or more exercises; with one it is played as straight sets.
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": {
"date": "<date>"
},
"name": "set_today_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| parts | No | ||
| blocks | No | ||
| coachNote | No | ||
| timeBudgetMinutes | No |