Play music
play_musicLoad, add, or insert music into the playback queue using a library ID or direct URL. Replace the current queue and play, append tracks, or play next.
Instructions
Load or queue music by library id (from search_library) or by direct URL. mode 'load' replaces the queue and plays, 'add' appends, 'insert' plays next.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "play_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| mode | No | load | |
| player | No | Player MAC address or exact name. Defaults to LMS_DEFAULT_PLAYER or the only player. | |
| albumId | No | ||
| genreId | No | ||
| trackId | No | ||
| artistId | No | ||
| playlistId | No |