set_mode
Controls Music playback by toggling shuffle or repeat modes on or off, then returns the resulting now-playing state.
Instructions
Set Music shuffle or repeat: mode in shuffle|repeat, on=true/false (repeat on→all, off→off). Additive, reversible; needs Automation access for Music. Returns the resulting now-playing state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| mode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||