write_log_workout
Log a finished workout to leap by recording exercises, sets, weights, reps, cardio, timed holds, and per-side details so volume and PRs update.
Instructions
Log a finished workout. Sets: weight + reps (done defaults to true), warmup, rir and/or rpe, failure (taken to failure), a drop set (drops), rest-pause (clusters; reps is the total), a pyramid's Max set (max), per side (left and right, each with its own weight, reps, rir/rpe and drops or clusters), timed (sec, optional weight; a hold per side is two rows, side L then R) or cardio (min, speed in km/h, optional incline in % with min). Weights in the profile unit; for a dumbbell exercise whose weight means per dumbbell or both together, the session is stamped with that meaning, as in the app, and volume counts both bells when it is per dumbbell. Every exercise needs at least one completed set. On a combined day (several routineIds) each exercise is linked to its routine, inferred when not given; sessions of a routine excluded from progression are marked so. leap computes volume, best weights and PR badges as the app does; logging today also raises the remembered working weight. When the plan follows the app's rotation, the output says which sessions of the round the workout did, and the workout that completes a round starts the next one the day after, as the app does. Without a start time, today ends now (starting no earlier than midnight) and other days start at 18:00. No future dates or times: the workout must have ended by now.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Default today | |
| name | No | Default the routine name(s) as the app joins them, else "Freestyle" | |
| note | No | ||
| start | No | Start time HH:MM in the user's time zone (the profile's reminder zone, else this machine's) | |
| entries | Yes | ||
| bodyWeight | No | Default that day's weigh-in, if any | |
| routineIds | No | The routine(s) this session followed; several make a combined day | |
| durationMin | No | Default 60 |