upload_activity
Uploads an activity file through Garmin's plain device-sync upload path. Multipart upload to the PLAIN /upload-service/upload path, no extension suffix and none of importActivity's load-bearing import headers (ordinary device-sync-shaped upload, distinct from importActivity's spoofed-client import).
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": {
"filename": "<filename>",
"content": "<content>"
},
"name": "upload_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file's contents: plain text for .gpx/.tcx, base64 for .fit | |
| encoding | No | How content is encoded. Default utf8; use base64 for .fit | |
| filename | Yes | File name ending in .fit, .gpx or .tcx, e.g. morning-run.gpx |