Loki Docs
Tools › Profile › Get the user's equipment

Get the user's equipment

get_my_equipmentReads
What it does
Reads only. Changes nothing.
Permission
Profile, read profile:read

What your assistant is told

What the calling user has told us they have, grouped by the PLACE they train — "Home", "World Class Unirii". Each place has a kind (home or gym) and a name that may be null, meaning the app shows its own word for it; say "home" or "the gym" in that case rather than inventing a name. Useful before suggesting what the user could train today, before programming anything that needs a machine, and before add_my_equipment, since it shows what they already have. An empty list means they have not told us yet — NOT that they own nothing. Their trainingContext on get_profile is the weaker fallback. An item is either a vocabulary row (equipment) or just the name they gave it (customName). Each vocabulary item carries exerciseCount — how many catalog exercises it satisfies a requirement of. For what the user can actually do with the lot, call find_exercises with onlyWhatIOwn: true (and the same place) rather than reasoning it out item by item. A customName item matches nothing in the catalog — we have never seen it — so it is context for you, not a filter.

Parameters

  • placetext, optionalOptional: a place's name (case-insensitive), or "home" / "gym" to pick by kind. Omit for every place.