local_player_control
Play, stop, or check status of audio on a local media player (mpv/vlc) when LOCAL_PLAYER is enabled. Use for computer playback instead of streaming to Xiaozhi hardware.
Instructions
控制本机媒体播放器(mpv/vlc)播放/停止,仅当 LOCAL_PLAYER 配置启用时有效。用于电脑端本地播放场景;小智硬件播放走 play_song 的音频资源,不需要此工具。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "local_player_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | action=play 时必填的音频地址 | |
| action | Yes | 操作类型 |