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.Example
The following agent searches Spotify for tracks and returns their names and URIs.cookbook/91_tools/spotify_tools.py