tp_create_library_item
Save a workout template to a library for reuse in future training plans. Define sport, duration, and interval structure to build a reusable resource.
Instructions
Save a workout template to a library.
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": {
"library_id": "<library_id>",
"name": "<name>",
"sport_family_id": "<sport_family_id>",
"sport_type_id": "<sport_type_id>"
},
"name": "tp_create_library_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tss | No | ||
| name | Yes | ||
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| structure | No | Interval structure (nested object) | |
| library_id | Yes | ||
| description | No | ||
| sport_type_id | Yes | Sport subtype ID (e.g. 3=Road Bike) | |
| duration_hours | No | ||
| sport_family_id | Yes | Sport ID (e.g. 2=Bike; see tp_get_workout_types) |