Import a Strong or Hevy export
trainrec_import_fileImports a CSV exported from Strong (workouts or measurements) or Hevy, as text exactly as the file has it; the server parses it. A large file can be sent in pieces split on whole workouts, each with the header line and the same batch id. Strong exports omit their unit. Workouts already imported are skipped. Only Strong and Hevy formats.
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": {
"text": "<text>"
},
"name": "trainrec_import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The CSV text, header line first. | |
| 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 pieces of the same file. | |
| format | No | Detected from the header when omitted. |