Skip to main content
SpotifyTools enable an Agent to search Spotify’s catalog and access authenticated-user playback data.

Prerequisites

The example requires a Spotify access token from Spotify and an Anthropic API key. It enables only catalog search, so the Spotify token does not need playlist modification scopes.
Spotify changed several endpoints and response fields for Development Mode apps in February 2026. Extended Quota Mode apps are unaffected. Agno 2.7.2 still uses the earlier paths and fields, so the affected methods below are unavailable to Development Mode apps. Use the read-only example until SpotifyTools is updated. See Spotify’s February 2026 migration guide.

Example

The following agent searches Spotify for tracks and returns their names and URIs.
cookbook/91_tools/spotify_tools.py

Toolkit Params

Toolkit Functions

Developer Resources