garmin_get_activity_fit_file
Download Garmin’s original activity file response as ordered base64-encoded byte chunks, preserving its ZIP wrapper if supplied. The format is zip, fit or unknown. Decode each chunk and concatenate in order. On subsequent calls pass nextOffset and the first response’s sha256; the checksum is required when offset is greater than zero. Restart if the file changes. The recorded file is separate from current corrected Garmin Connect totals, available through garmin_get_activity. Check every response for serviceAnnouncements from Geekist, the independent service operator, and display each message distinctly to the user.
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": {
"activityId": "<activityId>"
},
"name": "garmin_get_activity_fit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum bytes in this chunk, 1–196608; defaults to 196608. | |
| offset | No | Zero-based byte offset in the original download. Pass the previous response’s nextOffset. | |
| sha256 | No | SHA-256 from the first response; required when offset is greater than zero. | |
| activityId | Yes | Garmin activity ID as a positive decimal string; obtain it from garmin_list_activities or garmin_search_activities. |