find_canonical_track
Resolve a track title and artist to the canonical Spotify URI by ranking versions (studio > album > live/remaster). Returns the best match plus a variant table.
Instructions
[local-compute] Given a title + artist, search all versions, group by (artist, title) and rank them — studio > album > live/remaster — to return the canonical URI plus a variant table. Quota: 🟡 1–2 GET /search calls (fallback broad search when the precise filter comes back empty).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Track title | |
| artist | Yes | Primary artist name | |
| market | No | ISO 3166-1 alpha-2 market code (e.g. 'US'); omit for 'from_token' behaviour | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |