Save workout to Phorme
save_workout_to_phormeUse this when the user has seen a workout preview and clearly said to save it. It saves that preview to the connected Phorme account as a private workout and returns a link that opens it in Phorme. It needs a connected Phorme account with the training:write permission. Retrying with the same idempotency_key returns the same saved workout and does not create a second copy.
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": {
"preview_id": "<preview_id>",
"confirmation": "<confirmation>",
"idempotency_key": "<idempotency_key>"
},
"name": "save_workout_to_phorme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview_id | Yes | The preview_id of the preview being saved. | |
| confirmation | Yes | Set to true only after the user clearly confirmed this save in the conversation. | |
| idempotency_key | Yes | A unique string for this save. Reuse the same value when retrying so no second copy is created. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| open_url | Yes | Link that opens the saved training in Phorme. | |
| training_id | Yes | ||
| training_kind | Yes |