← 返回 Skills 市场
382
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install music-assistant
功能描述
Control Music Assistant (Home Assistant music server) - playback, volume, queue management, and library search. Use when user wants to play/pause music, skip...
使用说明 (SKILL.md)
\r \r
Music Assistant\r
\r Control your Music Assistant server for music playback, queue management, and library browsing.\r \r
Setup\r
\r Before using this skill, you need to configure your Music Assistant connection:\r \r
# Required\r
export MA_URL="http://YOUR_SERVER_IP:8095/api"\r
export MA_TOKEN="YOUR_BEARER_TOKEN"\r
\r
# Optional - auto-detected if not set\r
export MA_PLAYER="your_player_id"\r
```\r
\r
**Finding your token:**\r
1. Open Music Assistant web UI\r
2. Go to Settings → Security\r
3. Create or copy your Long-Lived Access Token\r
\r
**Finding your player ID:**\r
```bash\r
./scripts/mactl.py players\r
```\r
\r
## Quick Start\r
\r
```bash\r
# Basic controls\r
./scripts/mactl.py play # Play/pause toggle\r
./scripts/mactl.py next # Skip track\r
./scripts/mactl.py volume 75 # Set volume to 75%\r
\r
# Search and play\r
./scripts/mactl.py search "nirvana"\r
./scripts/mactl.py play-search "pink floyd" # Search and play first result\r
\r
# Check what's playing\r
./scripts/mactl.py status\r
./scripts/mactl.py queue\r
```\r
\r
## Playback Controls\r
\r
```bash\r
./scripts/mactl.py play # Play/pause toggle\r
./scripts/mactl.py pause # Pause\r
./scripts/mactl.py stop # Stop playback\r
./scripts/mactl.py next # Next track\r
./scripts/mactl.py prev # Previous track\r
```\r
\r
## Volume\r
\r
```bash\r
./scripts/mactl.py volume 75 # Set volume 0-100\r
./scripts/mactl.py mute # Mute\r
./scripts/mactl.py unmute # Unmute\r
```\r
\r
## Queue Management\r
\r
```bash\r
./scripts/mactl.py shuffle true # Enable shuffle\r
./scripts/mactl.py shuffle false # Disable shuffle\r
./scripts/mactl.py repeat all # Repeat mode (off|all|one)\r
./scripts/mactl.py clear # Clear queue\r
./scripts/mactl.py queue-items # List queue contents\r
```\r
\r
## Search & Play\r
\r
```bash\r
# Search library\r
./scripts/mactl.py search "pink floyd"\r
./scripts/mactl.py search "nirvana" --type track album\r
./scripts/mactl.py search "metallica" --limit 5\r
\r
# Search and immediately play first result\r
./scripts/mactl.py play-search "smells like teen spirit"\r
./scripts/mactl.py ps "comfortably numb" # shorthand\r
\r
# Play by URI (for scripts/advanced use)\r
./scripts/mactl.py play-uri "spotify://track/4gHnSNHs8RyVukKoWdS99f"\r
```\r
\r
## Status & Info\r
\r
```bash\r
./scripts/mactl.py status # Show player status + now playing\r
./scripts/mactl.py queue # Queue status\r
./scripts/mactl.py recent # Recently played items\r
./scripts/mactl.py players # List all available players\r
```\r
\r
## Library\r
\r
```bash\r
./scripts/mactl.py sync # Trigger library sync\r
```\r
\r
## Examples\r
\r
**"Play some Nirvana"**\r
```bash\r
./scripts/mactl.py play-search "nirvana"\r
```\r
\r
**"What's playing?"**\r
```bash\r
./scripts/mactl.py status\r
```\r
\r
**"Skip this track"**\r
```bash\r
./scripts/mactl.py next\r
```\r
\r
**"Set volume to 50%"**\r
```bash\r
./scripts/mactl.py volume 50\r
```\r
\r
**"Turn on shuffle"**\r
```bash\r
./scripts/mactl.py shuffle true\r
```\r
\r
## Direct API Access\r
\r
For operations not covered by the CLI, use the JSON-RPC API directly:\r
\r
```bash\r
curl -s "http://YOUR_SERVER:8095/api" \\r
-H "Content-Type: application/json" \\r
-H "Authorization: Bearer $MA_TOKEN" \\r
-d '{"message_id":"1","command":"player_queues/all"}'\r
```\r
\r
API documentation is available at: `http://YOUR_SERVER:8095/api-docs`\r
\r
### Key API Commands\r
\r
| Command | Args | Description |\r
|---------|------|-------------|\r
| `players/all` | - | List all players |\r
| `player_queues/all` | - | List all queues |\r
| `player_queues/play_pause` | `queue_id` | Toggle play/pause |\r
| `player_queues/next` | `queue_id` | Next track |\r
| `player_queues/previous` | `queue_id` | Previous track |\r
| `player_queues/stop` | `queue_id` | Stop playback |\r
| `player_queues/shuffle` | `queue_id`, `shuffle_enabled` | Set shuffle |\r
| `player_queues/repeat` | `queue_id`, `repeat_mode` | Set repeat (off/all/one) |\r
| `player_queues/clear` | `queue_id` | Clear queue |\r
| `player_queues/items` | `queue_id`, `limit`, `offset` | Get queue items |\r
| `player_queues/play_media` | `queue_id`, `uri` | Play by URI |\r
| `music/search` | `search`, `media_types`, `limit` | Search library |\r
| `music/recently_played_items` | `limit` | Recent items |\r
| `music/sync` | `media_types`, `providers` | Sync library |\r
| `config/players/get` | `player_id` | Get player settings |
安全使用建议
This skill appears to do exactly what it says: it uses MA_URL and MA_TOKEN to call your Music Assistant server. Before installing, ensure MA_URL points to your trusted Music Assistant instance (not a public/malicious host) and use a token with only the permissions you are comfortable granting (revoke or rotate it if needed). You can review the bundled scripts/mactl.py locally (it issues JSON-RPC to MA_URL and prints results) and run it on a machine you control. Note that the skill will use the provided token to control playback and query data on whatever MA_URL you supply, so avoid giving it tokens for services you don't trust.
功能分析
Type: OpenClaw Skill
Name: music-assistant
Version: 1.0.3
The music-assistant skill is a legitimate tool for controlling a Music Assistant server. The core logic in `scripts/mactl.py` uses standard Python libraries to interact with the Music Assistant JSON-RPC API for playback, volume, and library management. No evidence of data exfiltration, malicious execution, or prompt injection was found in `SKILL.md` or the source code.
能力评估
Purpose & Capability
Name/description (control Music Assistant) align with required environment variables (MA_URL, MA_TOKEN, optional MA_PLAYER) and the included CLI script which issues JSON-RPC commands to the Music Assistant API.
Instruction Scope
SKILL.md and scripts/mactl.py only instruct the agent to use MA_URL/MA_TOKEN (and optionally MA_PLAYER) to call the Music Assistant API; there are no instructions to read unrelated system files, other environment variables, or to send data to external endpoints beyond MA_URL.
Install Mechanism
No install spec is provided (instruction-only with an included script). Nothing is downloaded or written by an installer — the CLI is bundled as a local script.
Credentials
Only MA_URL and MA_TOKEN are required (plus optional MA_PLAYER). These credentials are directly necessary for the stated API interactions. No unrelated credentials or secrets are requested.
Persistence & Privilege
always is false and the skill does not request permanent system-level presence or modify other skills. The default ability for the agent to invoke the skill autonomously is unchanged (normal for skills) and not combined with other red flags.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install music-assistant - 安装完成后,直接呼叫该 Skill 的名称或使用
/music-assistant触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Renamed the CLI script from scripts/mactl.py.txt to scripts/mactl.py for proper execution.
- No changes to features or documentation.
v1.0.2
Re-upload of the zip
v1.0.1
- Added metadata specifying required and optional environment variables for configuration.
- No functional or documentation changes to commands or usage.
v1.0.0
Initial release of Music Assistant skill for Home Assistant music server control.
- Control music playback (play, pause, stop, next, previous)
- Manage volume (set volume, mute, unmute)
- Search your music library and play results
- Manage playback queue (shuffle, repeat, clear, list items)
- View status and what's currently playing
- Works with various providers: Spotify, Plex, and local files
- Includes CLI examples and direct API tips for advanced use
元数据
常见问题
Music Assistant 是什么?
Control Music Assistant (Home Assistant music server) - playback, volume, queue management, and library search. Use when user wants to play/pause music, skip... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 382 次。
如何安装 Music Assistant?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install music-assistant」即可一键安装,无需额外配置。
Music Assistant 是免费的吗?
是的,Music Assistant 完全免费(开源免费),可自由下载、安装和使用。
Music Assistant 支持哪些平台?
Music Assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Music Assistant?
由 Rodrigo(@rodrigosiviero)开发并维护,当前版本 v1.0.3。
推荐 Skills