Download activity file
download_activity_fileDownload a Garmin Connect activity as a FIT, GPX, TCX, KML or CSV file and get its saved path and size, so you can import it into another app.
Instructions
Download one activity from Garmin Connect and save it as a file on this machine (fit, gpx, tcx, kml or csv), returning its path and size. Use it when the user wants the file itself, e.g. to import into another app; to read an activity's numbers, laps or streams in the answer use get_activity instead. Prefer fit, the original recording, unless the destination needs another format. The file is named . and replaces an earlier download of the same activity and format; every call fetches it from Garmin again.
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": {
"id": "<id>"
},
"name": "download_activity_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Activity id from get_activities | |
| format | No | fit: original device file; gpx, tcx, kml: track; csv: laps | fit |
| output_dir | No | Subdirectory of the download directory (GARMIN_FIT_DOWNLOAD_DIR or <data dir>/downloads), e.g. "races"; default the download directory itself. Paths outside it are rejected |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |