batch_actions
Apply multiple workout edits or deletions in one call to update or remove several scheduled sessions at once instead of repeating individual requests.
Instructions
Create multiple edit/delete actions in a single call.
Use this instead of calling delete_scheduled_workout or edit_scheduled_workout repeatedly when you need to modify or remove multiple workouts at once. Edit compositions support the same goals and per-step alerts as create_workout (incl. heart-rate zones) — see the input schema.
Args: actions: Action objects. For "edit", composition is the full replacement workout (composition.id may be omitted — it is filled from workoutId). For "delete", omit composition.
Example: actions: [ {"workoutId": "aaa-...", "action": "delete"}, {"workoutId": "bbb-...", "action": "edit", "composition": { "displayName": "Updated Run", "activityType": "running", "location": "outdoor", "scheduledDate": "2026-03-25T07:00:00Z", "blocks": [{"iterations": 1, "steps": [{"purpose": "work", "goal": {"type": "time", "value": 1800, "unit": "seconds"}, "alert": {"type": "heartRateZone", "zone": 3}}]}] }} ]
Returns: List of created action objects.
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": {
"actions": "<actions>"
},
"name": "batch_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes |