Swap an exercise
swap_exerciseUse this when the person asks to swap the exercise in a session. Give the sessionId and slot, and the exerciseKey they chose, or a same-movement one from list_alternatives when they leave it to you. The new exercise brings its own rules, and loads never carry over between exercises. untilWeek null swaps that session only; a week keeps the swap for that day through that program week. Comes back with an Undo. Do not use to move a session; use move_session.
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": {
"sessionId": "<sessionId>",
"slot": "<slot>",
"exerciseKey": "<exerciseKey>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "swap_exercise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | The exercise's slot in that session, from get_today or get_session. | |
| sessionId | Yes | The session's id, from get_today or get_schedule. | |
| untilWeek | No | Keep the swap for that day through this program week (the plan keeps going past week 26); null swaps this session only. | |
| exerciseKey | Yes | The exercise to put in the slot: its key from list_alternatives or get_session. | |
| idempotencyKey | Yes | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |