play_context
Start playback of any Spotify playlist, album, or artist by providing its context URI or ID.
Instructions
Start playback of a Spotify context (playlist, album, or artist).
Parameters
context_uri : str
Spotify URI (e.g. spotify:playlist:<id>) or bare playlist ID.
Returns
dict
{"status": "playing", "context_uri": str}
Raises
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": {
"context_uri": "<context_uri>"
},
"name": "play_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_uri | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||