group_tracks
Groups loaded tracks into draft playlists by decade, genre family, or chosen genres, with optional filters and preview counts. Saves a draft only—nothing is written to Spotify.
Instructions
Group the loaded tracks into a draft of new playlists, and open the draft dashboard.
Workflow: narrow the pool with filters, call with preview_only=true to see the counts, then
run it. The draft is saved (ID like "d3") and nothing is written to Spotify. Tracks already
organized ("done", see organize_progress) are left out unless include_done=true.
Args: mode: "category" (one group per decade and/or genre family) or "genres" (one group per chosen genre tag). "kmeans" (by audio similarity) comes with audio features, later. filters: playlists, decades and genre_families to narrow the pool before grouping. by: category mode only: "decade", "genre_family" or "both" (e.g. "Rock · 1990s"). A track in several families goes to the first one. Tracks without a genre or a release decade (when that dimension is used) are listed as unmatched, with the reason. genres: genres mode: exact genre tags to make groups for (a track with several chosen tags is in each group). If omitted, filters.genre_families picks every tag of those families; with neither, you get the list of genres in the pool (nothing is saved). also_by_decade: genres mode: also split each genre group by decade ("rock · 1980s"). include_done: include tracks already organized. preview_only: don't save a draft; return the pool counts and how many groups/unmatched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | both | |
| mode | Yes | ||
| genres | No | ||
| filters | No | ||
| include_done | No | ||
| preview_only | No | ||
| also_by_decade | No |