export_playlist
Export a Spotify playlist's complete track list as an M3U playlist or CSV spreadsheet, either inline or to a local file.
Instructions
Export a playlist's full item list as an M3U playlist file or a CSV spreadsheet. Pages every item; pass output_path to write a file (created with mode 0600) or omit it to get the document inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: m3u (playable playlist) or csv (spreadsheet) | m3u |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| output_path | No | Write the full document to this local file instead of returning it inline | |
| playlist_id | Yes | Playlist ID | |
| include_headers | No | Emit the #EXTM3U marker / CSV header row | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |