Play Music
play_musicSearches for a song or artist and starts playback in a room through the Sonos cloud. A query of 'title artist' plays one song; an artist name alone plays a batch of that artist's songs, with duplicate versions of the same title removed. Without the ZoneFoundry bridge, tracks play directly on the speaker and are added to the Sonos queue the next time the ZoneFoundry app is opened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | Yes | Room name as shown in the Sonos app (usually English, e.g. "Living Room"). Common Chinese aliases (客厅/主卧) also resolve. Omit for the default room. | |
| count | No | How many tracks to play. Default follows the query shape: a single word (artist name or genre, e.g. '粤语歌', 'Beyond') defaults to 10; '歌名 艺人' (two parts) defaults to 1. Pass it explicitly to override. | |
| query | Yes | Song/artist search text, e.g. '心太软 任贤齐' or '周杰伦' | |
| service | No | Music service. Leave it out unless the user named one — the server then uses the first working service from the user's own ranking |