skip_track
Skip to the next or previous track on the active Spotify device. Use direction to control playback.
Instructions
Skip to the next or previous track on the active Spotify device.
Parameters
direction : str, optional
"next" (default) to skip forward, "previous" to go back.
Returns
dict
{"status": "skipped_next" | "skipped_previous" | "no_active_device"}
Raises
ValueError
If direction is not "next" or "previous".
spotipy.SpotifyException
Propagated if the Spotify API returns a non-2xx response.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "skip_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | next |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||