export_playlist
Export any Spotify playlist to an M3U playlist or CSV spreadsheet, capturing every track and podcast item for backup or offline use.
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) inside the configured output root, or omit it to get the document inline. CSV cells are formula-safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: m3u (playable playlist) or csv (spreadsheet) | m3u |
| overwrite | No | Allow replacing an existing file at output_path (refused by default) | |
| 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 (relative paths resolve inside the output root, default ~/.spotify-mcp/exports) 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 |