add_to_queue
Add a specific track to the playback queue for immediate or upcoming playback, enabling dynamic playlist building, collaborative listening, or "play this next" functionality. Returns queue position, track details, and estimated play time.
Instructions
Add a specific track to the user's playback queue for immediate or upcoming playback.
🎯 USE CASES: • Queue up requested songs during parties or events • Build dynamic playlists on-the-fly based on mood • Add discovery tracks without interrupting current playlist • Create collaborative queuing for shared listening sessions • Implement "play this next" functionality
📝 WHAT IT RETURNS: • Confirmation that track was added to queue • Position of track in the upcoming queue • Estimated time until track will play • Current queue length and upcoming tracks preview • Track information that was successfully queued
🔍 EXAMPLES: • "Add 'Bohemian Rhapsody' to my queue" • "Queue up the track spotify:track:4uLU6hMCjMI75M1A2tKUQC" • "Add this song to play next" • "Put 'Sweet Child O Mine' in my queue"
🎵 QUEUE BEHAVIOR: • Tracks play in the order they were added • Queue plays after current track/playlist ends • Maintains queue across device switches • Can add multiple tracks for extended queuing • Integrates with existing shuffle and repeat settings
⚠️ REQUIREMENTS: • Valid Spotify access token with user-modify-playback-state scope • Track must be available in user's market • Active playback session or available device required
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deviceId | No | Spotify device ID (optional, uses active device if not specified) | |
token | Yes | Spotify access token for authentication | |
trackUri | Yes | Spotify track URI (e.g., 'spotify:track:4uLU6hMCjMI75M1A2tKUQC') |