Apple Music Integration Guide for integrating with Apple Music. Covers AppleScript (macOS), MusicKit API (cross-platform), and the critical library-first requirement. When to Use Invoke when users ask to: - Manage playlists (create, add/remove tracks, list) - Control playback (play, pause, skip, volume) - Search catalog or library - Add songs to library - Access listening history or recommendations Critical Rule: Library-First Workflow You CANNOT add catalog songs directly to playlists. Songs must be in the user's library first: - ❌ Catalog ID → Playlist (fails) - ✅ Catalog ID → Library → Pla…