원클릭으로
spotify
Spotify Web Player control via Playwright
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Spotify Web Player control via Playwright
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Window management, file operations, and clipboard
Local media player control via Windows media keys
Notion API for creating and managing pages and databases
OS-level control — apps, volume, brightness, screenshots
General browser control and URL navigation
WhatsApp Web messaging via Playwright
| name | spotify |
| description | Spotify Web Player control via Playwright |
| triggers | ["spotify","play","music","song","artist","pause","next","previous"] |
| url | https://open.spotify.com |
Controls Spotify Web Player — search, play, pause, skip, volume.
https://open.spotify.comJarvis connects to Chrome via CDP (debug port 9222).
Option A — Use your real Chrome (zero extra login):
Add --remote-debugging-port=9222 to your Chrome shortcut target:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
When Chrome is open this way, Jarvis attaches to it directly — your existing Spotify session is used.
Option B — Let Jarvis open automation Chrome (default, one-time login):
If no Chrome has the debug port open, Jarvis launches a separate Chrome window using .playwright-profile/chrome/. Log into Spotify once in that window — it persists across restarts.
NEVER use keyboard_press(key="space") on Spotify. Space triggers global play/pause on whatever was last loaded, not the searched song. Always use Playwright click on the specific play button.
Prerequisite: User must be logged into Spotify in the Playwright Chrome window. On first use, Chrome opens a fresh profile — log into Spotify there once (it persists). If [data-testid='search-input'] is not found after navigation, the user is not logged in — respond: "Please log into Spotify in the Chrome window that just opened, then ask me again."
playwright_focus_tab(url_contains="spotify") — try existing tab first (best-effort, may not find one)playwright_open_url(url="https://open.spotify.com/search") — navigate to the Spotify search page (always use this exact URL, never append the query to the URL)playwright_wait_for(selector="[data-testid='search-input']", timeout_ms=5000) — verify user is logged in; if this times out, stop and tell user to log in firstplaywright_click(selector="[data-testid='search-input']") — click the search input to focus itplaywright_type(selector="[data-testid='search-input']", text="<query>", press_enter=true) — type the search query and press Enter to submitplaywright_wait_for(selector="[data-testid='tracklist-row']", timeout_ms=8000) — wait for search results to loadplaywright_click(selector="[data-testid='tracklist-row']:first-child", click_count=2) — double-click the first track to start playing it immediatelyplaywright_click(selector="[data-testid='control-button-playpause']", strategy="auto") — click the play/pause button in the bottom player barIMPORTANT: NEVER append the song name to the URL. Always navigate to /search and type the query. Step 7 MUST use click_count=2 — a single click only highlights the row, a double-click plays it. Do NOT use keyboard_press(key="space") for Spotify (see CRITICAL warning above).
playwright_focus_tab(url_contains="spotify")playwright_click(selector="[data-testid='control-button-playpause']")playwright_focus_tab(url_contains="spotify") → playwright_click(selector="[data-testid='control-button-skip-forward']")playwright_focus_tab(url_contains="spotify") → playwright_click(selector="[data-testid='control-button-skip-back']")playwright_focus_tab(url_contains) — switch to Spotify tabplaywright_open_url(url) — open Spotifyplaywright_click(selector, strategy, click_count) — click elements; use click_count=2 for tracklist rowsplaywright_type(selector, text) — type search queryplaywright_wait_for(selector, timeout_ms) — wait for resultsplaywright_hover(selector) — reveal hidden play buttons