360 Secure SkillHub
360 安全技能中心

spotify-control

面向 macOS 的 Spotify 控制 Skill:通过自带 Python 包装脚本一次性执行 AppleScript,实现播放/暂停、上一首/下一首、音量与播放位置设置、随机与循环开关,以及获取当前曲目名称、艺人、专辑等元数据;使用前需 Spotify 已安装并运行。

copywrite-ai
copywrite-ai
热度 56.85
最近更新 2026-05-18 12:17:34
分类:自动化依赖:代码执行应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add spotify-control
Metadata
name
spotify-control
description
macOS Spotify control skill for OpenClaw. Supports playback, volume, position, and metadata retrieval via AppleScript.
version
1.0.1
author
Antigravity
platform
macOS

Spotify Control (macOS)

Overview

Control Spotify on macOS using AppleScript. This skill provides a set of commands to manage playback, volume, and track information.

Actions

Playback Control

  • Play/Pause: Toggle playback.
  • Next/Previous: Jump to next or previous track.
  • Stop: Pause playback.

Volume & Position

  • Set Volume (0-100): Adjust Spotify internal volume.
  • Set Position (seconds): Jump to a specific time in the current track.

Metadata & State

  • Get Info: Retrieve current track name, artist, album, and Spotify URL.
  • Set Shuffle (on/off): Toggle shuffle mode.
  • Set Repeat (on/off): Toggle repeat mode.

Usage

Agents should use the scripts/spotify-control.py wrapper for all commands.

Examples

# Toggle play/pause
scripts/spotify-control.py playpause

# Get current track info
scripts/spotify-control.py get-info

# Set volume to 80%
scripts/spotify-control.py set-volume 80

# Seek to 1 minute (60s)
scripts/spotify-control.py set-position 60

Guardrails

  • Ensure Spotify is installed and running.
  • All commands are one-shot AppleScript executions via a Python wrapper.
  • Does not affect system-wide volume unless specified for fallback.