Control a specific music player
hs_music_controlControl playback in Spotify or the Music app with play, pause, play/pause, next, or previous actions. Targets the specified player directly to avoid conflicts when multiple players are available.
Instructions
Play, pause, or skip in Spotify or the Music app specifically. Use this instead of hs_media_control when more than one player could respond to a media key. The reported state is read back after the action settles, so it reflects what the player is now doing. Errors rather than launching the app if it is not already running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do. | |
| player | Yes | Which player to control. |