next_track
Skip to the next track in your Spotify queue to continue playback without interruption.
Instructions
Skip to next track in queue
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": "next_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:44-47 (handler)FastMCP tool handler for 'next_track'. Registers the tool and executes by delegating to SpotifyClient.next_track().
@mcp.tool() async def next_track() -> str: """Skip to next track in queue""" return await client.next_track() - spotify.py:160-168 (helper)SpotifyClient helper method implementing next_track logic using spotipy library.
async def next_track(self) -> str: """ Skip to the next track. """ try: self.sp.next_track() return "Skipped to next track" except Exception as e: return f"Error skipping track: {str(e)}"