Skip to content
Changelog

scene.switch

Puts a scene on air as the program.

JSON-RPC 2.0Changes what viewers see or hearproject.write

The switch plays the scene's own transition, or the workspace's. With studio mode off, the scene is also selected in the window; with it on, the staged scene stays as it is.

An AI agent connected over MCP asks the person first while Lightair is live, unless AI agents may go live without asking is on in Settings › Remote API. Other clients aren't asked.

Parameters

  • scenestringrequiredThe scene's id or name.

Result

  • idstringThe scene's id.
  • namestringThe scene's name.

Errors

Not found (-32004) when no scene has that id or name.

Events

Subscribers to events get scene.program.

From an AI agent

The MCP server's switch_scene reaches this method. Because it changes what viewers see or hear, Lightair can ask the person first: see the MCP server for when it asks.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "scene.switch",
"params": {
"scene": "Main"
}
}

Result

{ "id": "019ad3f2-6c1e-7a40-9b52-3f1d2e8c4a10", "name": "Main" }

scene.create · staging.take · transition.set