Workouts
createadd_exercises_to_workout
Adds exercises and sets to an existing logged workout. An explicit workoutId selects the session; otherwise the date selects that day's logged session. Requires an in-progress or completed workout.
readOnlyHint: falsedestructiveHint: falseidempotentHint: falseopenWorldHint: falsetitle: Add exercises to a workoutworkoutIdstring (uuid)ID of the user's existing workout. When optional and omitted, the operation selects the logged workout for the specified date.
datestringThe day whose workout to add to. Defaults to today.
Format YYYY-MM-DD
exercisesarray of objectsRequired1 to 15 items
Each item
exerciseIdstring (uuid)ID of an exercise accessible to this account.
createNamestringName of a real custom movement absent from the exercise catalog. Creates that custom exercise when needed.
2 to 80 characters
muscleGroupstringWith createName, when known.
Up to 40 characters
notesstringUp to 300 characters
setsarray of objectsRequired1 to 20 items
Each item
repsinteger1 to 200
weightnumber0 to 2,000
rpenumberOnly when the user stated effort for THIS set.
1 to 10
durationSecondsinteger5 to 36,000
distancenumberAt least 0
distanceUnitstringOne of mi, km, m
notesstringUp to 200 characters
allowDuplicatebooleanOnly true when the user really means a second, identical entry moments after the first.
One text item holding a JSON object, as in the example.
duplicateNotice instead of saving again. Pass allowDuplicate: true only when the user really means a second, identical entry.This tool's own errors, each returned with isError: true:
fillsPlannedSession if this is the day's planned routine workout.workoutId is not a session the user logged, so there is nothing to add to. Use log_workout instead, with fillsPlannedSession if this is the day's planned routine workout.Every tool returns isError with a message when its arguments don't match the schema, a limit is reached, the person turned the agent off, or iAM360 has a problem. See Errors and limits.