create_playlist
Create a new empty private playlist for your Spotify account. Provide a name and optional description to get the playlist ID, name, and URL.
Instructions
Create a new empty private playlist for the current user.
Parameters
name : str Display name for the new playlist. description : str, optional Short description shown in Spotify clients (default: empty string).
Returns
dict
Keys: id, name, url.
Raises
ValueError
If name is blank.
spotipy.SpotifyException
Propagated if the Spotify API returns a non-2xx response.
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": {
"name": "<name>"
},
"name": "create_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||