create_weekly_plan
Schedule a full week of Garmin Connect workouts from a JSON/YAML plan file, uploading each session and assigning it to its date.
Instructions
Create and schedule a full week of workouts from a plan file.
Parses a JSON/YAML plan file, maps each entry to the appropriate
workout builder, uploads all workouts, schedules each on its own
date, and returns a summary.
Plan file format (JSON): [ { "date": "2026-07-13", "sport": "cycling", "type": "endurance", "name": "Z2 Endurance 90m", "duration_min": 90, "hr_zone": "Z2" } ]
Every entry needs its own date; an entry without one is uploaded
but reported with schedule_error rather than scheduled.
Args: plan_yaml_path: Absolute path to the plan JSON/YAML file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_yaml_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |