Collect every track in a playlist
tidal_collect_playlist_tracksCollect tracks from a TIDAL playlist by following page cursors automatically, with a max-items cap and a truncated flag for capped results.
Instructions
Walk a playlist's pages and return the tracks, instead of paging by hand.
The walk follows the page cursor until the end of the playlist or max_items. A short or
empty page never ends the walk early. truncated is true when the cap was reached before
the end, so a capped result is never mistaken for the complete playlist.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"playlist_id": "<playlist_id>"
},
"name": "tidal_collect_playlist_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_items | No | Hard cap on collected tracks. The walk stops here and reports truncated. | |
| playlist_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| max_items | Yes | ||
| truncated | Yes | True when the walk stopped at max_items without reaching the end of the playlist, so items may be missing. | |
| playlist_id | Yes | ||
| pages_fetched | Yes |