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. Do not use it for multiweek programs, nutrition plans, or pain and injury questions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workout": "<workout>"
},
"name": "preview_workout_import"
}
}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 and demo link. | |
| expires_at | Yes | When the preview can no longer be saved, as an ISO 8601 time. | |
| preview_id | Yes | Identifies this preview when it is saved. | |
| training_kind | Yes | ||
| warning_count | Yes | ||
| exercise_count | Yes | ||
| requires_confirmation | Yes | Always true: saving needs the user's confirmation. | |
| estimated_duration_minutes | Yes |