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.
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": {
"mode": "<mode>",
"on": "<on>"
},
"name": "set_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| mode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||