tp_download_workout_file
Download a specific workout file from TrainingPeaks by file ID and save it to a local path.
Instructions
Download a workout file by file_id. Get file_id from tp_get_workout device_files/attachment_files.
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_id": "<workout_id>",
"file_id": "<file_id>"
},
"name": "tp_download_workout_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| file_id | Yes | File ID from tp_get_workout | |
| workout_id | Yes | Workout ID | |
| output_path | No | Directory or full path to save file |