Loki Docs
Tools › Workouts › Get exercise history

Get exercise history

get_exercise_historyReads
What it does
Reads only. Changes nothing.
Permission
Workouts, read workouts:read

What your assistant is told

The user's recent performances of one exercise (newest first) — the sets logged each time. Use to answer "how did this go last time?". Pass clientHandle for a coached client. Each set carries only the measure its exercise is counted in — reps, or durationSeconds for a hold, or distanceM for a carry — plus side when it was logged one limb at a time. weightKg is what the user entered and loadKg is what it moved once loadMode is applied (null when a bodyweight-based set has no weigh-in behind it).

Parameters

  • exercisetext, requiredThe exercise: a catalog slug (e.g. "barbell-back-squat") or the numeric id find_exercises gives you — which is the only way to name one of the user's own exercises, since those have no slug.
  • limitwhole number, optionalHow many recent sessions to return (default 5, max 50).
  • clientHandletext, optionalOptional client_handle from list_clients to run this tool against a coached client's data instead of your own. Omit (or pass null) for your own data — the legacy default.