category_resolver
Resolve a free-text genre or vibe into the best-matching Spotify browse category ID via local fuzzy match over category listings. Handles registration-gated errors with a clear disclosure.
Instructions
Free-text genre/vibe → best-matching browse category ID via local fuzzy match over GET /browse/categories results. REGISTRATION GATE: /browse/categories is on the #329 app-registration gated surface — on fresh registrations this short-circuits with a clear disclosure instead of a raw 403. Quota: 🟡 1–4 API calls (paged category walk).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Free-text genre/vibe, e.g. "chill electronic" | |
| locale | No | Locale, e.g. en_US | |
| country | No | ISO 3166-1 alpha-2 country code | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |