返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

youtube-music-openclaw

用自然语言控制YouTube音乐 - 搜索、播放、暂停、跳过、调节音量、随机播放

person作者: jakexiaohubgithub

YouTube Music Control (Kaset)

Playback Commands

osascript -e 'tell application "Kaset" to <command>'

| Command | Description | |---------|-------------| | play | Play/resume | | pause | Pause | | next track | Next song | | previous track | Previous song | | set volume N | Volume 0-100 | | toggle mute | Mute on/off | | toggle shuffle | Shuffle on/off | | like track | Like current | | get player info | Get state as JSON |

Search and Play

# 1. Search (returns JSON array with id, title)
{baseDir}/bin/youtube-search "artist or song name"

# 2. Play by ID
{baseDir}/bin/play-video VIDEO_ID

When user wants to play something, search first, pick a random result, then play it.