Set the music of a scene
update-scene-musicSet or clear a scene's playlist and track so the right music plays when the scene activates. Specify scene, playlist, and track by id or exact name; omitted fields stay unchanged.
Instructions
Set or clear the playlist and the single track a scene plays when it is activated. A parameter left out keeps that field; null or an empty text clears it. playlist_sound alone picks a track of the playlist the scene already has. A new playlist keeps the track only when it belongs to it, otherwise the track is cleared and the result says so; the scene never points at a track outside its playlist. Scene, playlist and track are found by id or exact name (case ignored when unique). Needs the scene permission "create and change".
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": {
"scene_identifier": "<scene_identifier>"
},
"name": "update-scene-music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playlist | No | Id or name of the playlist; null or empty clears it. Leave out to keep it. | |
| playlist_sound | No | Id or name of a track in that playlist; null or empty clears it. | |
| scene_identifier | Yes | Id or name of the scene. |