Music Add To Playlist
music_add_to_playlistAdds library tracks to a playlist of the Music app, in the order given. Smart playlists, folders and playlists the Music app manages are refused. When any track id is not in the library, nothing is added. A track that is already in the playlist is added again. Opens the Music app when it is closed.
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": {
"playlist": "<playlist>",
"track_ids": "<track_ids>"
},
"name": "music_add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| create | No | Create the playlist when none has that name (default false). | |
| confirm | No | Ignored; kept for older clients. | |
| playlist | Yes | Playlist name or id from music_list_playlists. | |
| track_ids | Yes | Track ids from music_search_library (at most 100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | ||
| tracks | No | ||
| created | Yes | ||
| playlist | Yes |