Import workouts from another app
trainrec_import_workoutsImports past workouts from another app or file. Exercises are matched to existing ones by name; unmatched names become custom exercises, listed in the result. Up to 100 workouts per call; the same batch id on later calls makes one import, undone together. Workouts already imported from the same app are skipped.
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": {
"app": "<app>",
"workouts": "<workouts>"
},
"name": "trainrec_import_workouts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Where these came from, e.g. "FitNotes", "JEFIT", "Notes app". | |
| unit | No | Unit for every weight in this call. Defaults to the person's own unit. | |
| batch | No | Returned by the first call; pass it on later calls in the same import. | |
| workouts | Yes |