play_song
Play a song by entering its title or artist, or use a specific song ID and source. Receives a streamable audio resource link to play the track directly.
Instructions
播放歌曲。用户说“播放xxx”“来一首xxx”“放点xxx”时使用。传入歌名/歌手后会自动搜索并解析可播放地址;也可传入 search_song 返回的 song_id 和 source 精确播放。返回内容包含文本信息和 ResourceLink 音频资源(可通过 resource://read_from_http 分页读取后播放)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | 歌曲名,或 歌手 + 歌名,例如:青花瓷 | |
| source | No | 指定音源;auto 表示自动选择 | |
| song_id | No | search_song 返回的歌曲 ID(可选) | |
| prefer_quality | No | 音质偏好,默认 standard |