Plan a workout to follow
trainrec_plan_workoutPlans a workout for the person to do: saves it in TrainRec, where their phone and watch walk them through it one set at a time, with each set's target (weight and reps, time or distance) and the rest after it. Every set starts as not yet done. Given an id and version, it changes an existing plan, even during the workout: sets already done are kept, and the phone and watch show the change within seconds. A workout that already happened is recorded with save_workout.
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": {
"name": "<name>",
"exercises": "<exercises>"
},
"name": "trainrec_plan_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Omit to create. | |
| day | No | YYYY-MM-DD. Default today. | |
| name | Yes | e.g. "Easy 5K and core", "Upper body A". | |
| unit | No | Unit for every weight in this call. Defaults to the person's own unit. | |
| fresh | No | true puts a workout started by mistake back to a plan: no set done, no start time. Send the whole plan. | |
| notes | No | Shown at the top while they follow it: the goal of the session, cues. | |
| summary | No | ||
| version | No | Required when id is given. | |
| exercises | Yes | In the order performed, by exercise id (built-in or custom). |