Log workout sets
log_workout_setsAdd exercises and sets to a workout. Accepts gym shorthand ("lateral raise 5kg 4x12", "2min rowing machine") and creates the workout for that date if none exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Workout type. Sets go to the session of this type on that date; a new session is created when there is none. | |
| notes | No | Notes | |
| sets_text | Yes | One movement per line. Understands "4x12", "40kg", "2dk"/"90sn", "3 set". Example: "lateral raise 5kg 4x12\nincline bench press machine 40kg 4x8" | |
| workout_id | No | Add to this session. Needed when the date holds more than one session of the same type. | |
| workout_date | No | Date (Y-m-d, defaults to today) | |
| allow_duplicates | No | Write blocks that already exist on that date with the same load and set count. Off by default — a repeated call is far more often a re-send than a second round. | |
| duration_minutes | No | Session duration in minutes |