Preview workout in Phorme
preview_workout_importUse this when the user wants a single workout they can follow and track in Phorme: one written in this conversation, pasted from notes, or built to fit their time and equipment. It checks the workout, matches each exercise to the Phorme movement library with a demo link, flags anything that needs equipment the user did not list or runs past their time, and stores a private preview for 24 hours. It does not save training to any account. Show the user every warning and ask before calling save_workout_to_phorme. Do not use it for multiweek programs, nutrition plans, or pain and injury questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | Use "sport_week" when the workout is a session returned by preview_sport_week. Otherwise leave out. | |
| workout | Yes | The workout to preview, taken from this conversation. | |
| time_limit_minutes | No | Minutes the user said they have. Leave out when the user did not say. | |
| available_equipment | No | Equipment the user said they have, for example ["dumbbells", "bench"] or ["none"]. Leave out when the user did not say. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| warnings | Yes | Items the user should review before saving. | |
| exercises | No | Each exercise with its Phorme library match. Share the demo_url links with the user. | |
| expires_at | Yes | When the preview can no longer be saved, as an ISO 8601 time. | |
| preview_id | Yes | Pass this to the matching save tool after the user confirms. | |
| training_kind | Yes | ||
| warning_count | Yes | ||
| exercise_count | Yes | ||
| requires_confirmation | Yes | Always true. Ask the user before saving. | |
| estimated_duration_minutes | Yes |