set_favorite
Mark or unmark Apple Music tracks as Favorite one at a time, in order. Use an optional gap between tracks to give each a distinct timestamp and avoid timeouts.
Instructions
Mark (or unmark) tracks as Favorite, one at a time in the given order.
gap_sec waits between tracks so each gets a distinct timestamp. Keep calls under ~40 tracks when using a gap so the call doesn't time out.
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": {
"track_ids": "<track_ids>"
},
"name": "set_favorite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap_sec | No | ||
| favorite | No | ||
| track_ids | Yes |