Skip to Content

Spotify

Spotify icon
Arcade Optimized

Arcade.dev LLM tools for Spotify

Author:Arcade
Version:1.0.2
Auth:User authorization via the Spotify auth provider
13tools
PyPI VersionPython VersionsWheel StatusDownloadsLicense

The Arcade toolkit for Spotify empowers developers to integrate with Spotify's music streaming services seamlessly. It enables a variety of playback functionalities and retrieval of music data.

Capabilities

  • Control playback by adjusting position, pausing, and resuming tracks.
  • Access information on available devices and currently playing tracks.
  • Search the Spotify catalog with advanced filtering options.
  • Queue and play tracks or albums based on artist, name, or ID.

OAuth

  • Auth is via OAuth2 with provider Spotify.
  • Required scopes include user-modify-playback-state, user-read-currently-playing, and user-read-playback-state.

Available tools(13)

13 of 13
Tool nameDescriptionSecrets
Adjust the playback position within the currently playing track. Knowledge of the current playback state is NOT needed to use this tool as it handles clamping the position to valid start/end boundaries to prevent overshooting or negative values. This tool allows you to seek to a specific position within the currently playing track. You can either provide an absolute position in milliseconds or a relative position from the current playback position in milliseconds. Note: Either absolute_position_ms or relative_position_ms must be provided, but not both.
Get the available devices
Get information about the user's currently playing track
Get information about the user's current playback state, including track or episode, and active device. This tool does not perform any actions. Use other tools to control playback.
Get information about a track
Pause the currently playing track, if any
Plays a song by an artist and queues four more songs by the same artist
Plays a song by name
Resume the currently playing track, if any
Search Spotify catalog information Explanation of the q parameter: You can narrow down your search using field filters. Available filters are album, artist, track, year, upc, tag:hipster, tag:new, isrc, and genre. Each field filter only applies to certain result types. The artist and year filters can be used while searching albums, artists and tracks. You can filter on a single year or a range (e.g. 1955-1960). The album filter can be used while searching albums and tracks. The genre filter can be used while searching artists and tracks. The isrc and track filters can be used while searching tracks. The upc, tag:new and tag:hipster filters can only be used while searching albums. The tag:new filter will return albums released in the past two weeks and tag:hipster can be used to return only albums with the lowest 10% popularity. Example: q="remaster track:Doxy artist:Miles Davis"
Skip to the next track in the user's queue, if any
Skip to the previous track in the user's queue, if any
Start playback of a list of tracks (songs)

Selected tools

No tools selected.

Click "Show all tools" to add tools.

Requirements

Select tools to see requirements

#

Spotify.AdjustPlaybackPosition

Adjust the playback position within the currently playing track. Knowledge of the current playback state is NOT needed to use this tool as it handles clamping the position to valid start/end boundaries to prevent overshooting or negative values. This tool allows you to seek to a specific position within the currently playing track. You can either provide an absolute position in milliseconds or a relative position from the current playback position in milliseconds. Note: Either absolute_position_ms or relative_position_ms must be provided, but not both.

Parameters

ParameterTypeReq.Description
absolute_position_msintegerOptionalThe absolute position in milliseconds to seek to
relative_position_msintegerOptionalThe relative position from the current playback position in milliseconds to seek to

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.GetAvailableDevices

Get the available devices

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonThe available devices
#

Spotify.GetCurrentlyPlaying

Get information about the user's currently playing track

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonInformation about the user's currently playing track
#

Spotify.GetPlaybackState

Get information about the user's current playback state, including track or episode, and active device. This tool does not perform any actions. Use other tools to control playback.

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonInformation about the user's current playback state
#

Spotify.GetTrackFromId

Get information about a track

Parameters

ParameterTypeReq.Description
track_idstringRequiredThe Spotify ID of the track

Requirements

No secrets required

Output

Type:jsonInformation about the track
#

Spotify.PausePlayback

Pause the currently playing track, if any

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.PlayArtistByName

Plays a song by an artist and queues four more songs by the same artist

Parameters

ParameterTypeReq.Description
namestringRequiredThe name of the artist to play

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.PlayTrackByName

Plays a song by name

Parameters

ParameterTypeReq.Description
track_namestringRequiredThe name of the track to play
artist_namestringOptionalThe name of the artist of the track

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.ResumePlayback

Resume the currently playing track, if any

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.Search

Search Spotify catalog information Explanation of the q parameter: You can narrow down your search using field filters. Available filters are album, artist, track, year, upc, tag:hipster, tag:new, isrc, and genre. Each field filter only applies to certain result types. The artist and year filters can be used while searching albums, artists and tracks. You can filter on a single year or a range (e.g. 1955-1960). The album filter can be used while searching albums and tracks. The genre filter can be used while searching artists and tracks. The isrc and track filters can be used while searching tracks. The upc, tag:new and tag:hipster filters can only be used while searching albums. The tag:new filter will return albums released in the past two weeks and tag:hipster can be used to return only albums with the lowest 10% popularity. Example: q="remaster track:Doxy artist:Miles Davis"

Parameters

ParameterTypeReq.Description
qstringRequiredThe search query
typesarray<string>RequiredThe types of results to return
albumartistplaylisttrackshowepisodeaudiobook
limitintegerOptionalThe maximum number of results to return

Requirements

No secrets required

Output

Type:jsonA list of artists matching the search query
#

Spotify.SkipToNextTrack

Skip to the next track in the user's queue, if any

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.SkipToPreviousTrack

Skip to the previous track in the user's queue, if any

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:stringSuccess/failure message
#

Spotify.StartTracksPlaybackById

Start playback of a list of tracks (songs)

Parameters

ParameterTypeReq.Description
track_idsarray<string>RequiredA list of Spotify track (song) IDs to play. Order of execution is not guarenteed.
position_msintegerOptionalThe position in milliseconds to start the first track from

Requirements

No secrets required

Output

Type:stringSuccess/failure message
Last updated on