search_within_playlist
Search within a single Spotify playlist for tracks or episodes matching a query by name, artist, album, or show. Narrow results by kind.
Instructions
Text search inside a single playlist: a client-side filter over the rows the walk read, cheaper than paging get_playlist_items yourself for a narrow query — but it can only see that window, so scanned_items/scan_cap/scan_truncated say how much of the playlist was actually read. Matches item name, artist, album and show name; kind narrows a mixed playlist to tracks only or episodes only. Quota: GET /playlists/{id}/items paged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Alias for playlist_id, matching get_playlist_items | |
| kind | No | Item kinds to match: 'track', 'episode', or 'any' (default — both). Mixed playlists hold both row shapes | any |
| query | Yes | Substring to match against track/episode name, artist, album, show name | |
| market | No | Market for track relinking, e.g. 'US' | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| playlist_id | No | Playlist ID (or pass it as 'id') | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |