download_activity_file
Download a Garmin activity to disk as a file. Provide an activity ID and choose fit, gpx, tcx, or csv format to save it locally.
Instructions
Download an activity and save it to disk as a file.
Saves the activity in the requested format. Defaults to the original .fit file; Garmin also supports gpx, tcx, and csv.
Directory resolution (first match wins):
output_dir argument (one-off; not persisted)
GARMIN_FIT_DOWNLOAD_DIR environment variable
persisted config (set via set_fit_download_dir) If none is configured, returns status "needs_setup" with a suggested default (the server's current working directory). In that case, ask the user where to save, call set_fit_download_dir(path), then call this tool again.
Files are named "{activity_id}.{ext}" and overwrite any existing file.
Args: activity_id: Garmin activity ID format: One of fit, gpx, tcx, csv (default fit) output_dir: Optional one-off directory override (not persisted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | fit | |
| output_dir | No | ||
| activity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |