swap_workout_exercise
Replace a single exercise in a workout plan by its order (confirm-gated) — the surgical alternative to update_workout_plan. exerciseOrder is the order of the slot to replace (see list_workout_plans). newExercise is one exercise in the create_workout_plan shape; carry over exerciseId from search_exercises when there's a catalog match.
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": {
"planId": "<planId>",
"exerciseOrder": "<exerciseOrder>",
"newExercise": "<newExercise>"
},
"name": "swap_workout_exercise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | Yes | ||
| confirm | No | Must be true to actually execute. If false/omitted, returns a preview only. | |
| newExercise | Yes | ||
| exerciseOrder | Yes |