next_track
Skip to the next track in your Spotify queue to continue playback without interruption.
Instructions
Skip to next track in queue
Input Schema
TableJSON 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)}"