Create playlist / add tracks
modify_playlistCreate a new Spotify playlist or add track URIs to an existing playlist.
Instructions
action=create makes a new playlist (private by default); action=add_items appends track URIs to an existing playlist. Does not delete or remove anything.
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>"
},
"name": "modify_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New playlist name (action=create) | |
| uris | No | Track URIs to add (action=add_items) | |
| action | Yes | ||
| public | No | Make the new playlist public (default false) | |
| playlist | No | Target playlist id/URI/URL (action=add_items) | |
| description | No | New playlist description (action=create) |