Manage library
libraryAdd, remove, or verify saved items in your Spotify library using URIs for tracks, albums, artists, shows, or episodes.
Instructions
Saves, removes, or checks items in the user's Spotify library ('liked'). Works with any content URI: tracks, albums, artists (follow), shows, episodes. To save the current song, get its URI from now_playing first.
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": {
"action": "<action>",
"uris": "<uris>"
},
"name": "library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | Yes | Spotify URIs to act on | |
| action | Yes |