split_playlist_by_duration
Split any Spotify playlist into consecutive parts matching a target runtime, previewing the plan before creating new playlists.
Instructions
Split a playlist greedily into consecutive parts of a target runtime (e.g. 60-minute commute blocks), each written to a NEW playlist — dry_run defaults to TRUE. Quota: 🟡 GET + N creates + chunked adds when committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | New playlist name prefix. Default: "<original name> — Part" | |
| public | No | Public visibility for a newly created playlist. Default: private | |
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| playlist_id | Yes | Playlist to split (ID or spotify:playlist: URI) | |
| tolerance_sec | No | A part may run over by up to this many seconds. Default 30 | |
| target_minutes | Yes | Target runtime per part, in minutes | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |