staging.take
Puts the staged scene on air, with its transition or one given for this take only.
JSON-RPC 2.0Changes what viewers see or hearproject.write
Kinds: cut, fade, move, slide, wipe, dip, stinger, scene. duration_ms is at most 10000. 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.
Parameters
- transition{ kind: string, duration_ms?: number }A transition for this take only.
Result
- enabledbooleanWhether studio mode is on.
- stagedstring | nullThe staged scene's id.
- programstring | nullThe program scene's id.
- transition{ kind: string, duration_ms: number }The transition a take would use: the staged scene's own, else the workspace's.
Errors
A state error (-32005) when nothing is staged. Invalid params (-32602) for an unknown transition kind.
Events
Subscribers to events get scene.program, staging.state.
From an AI agent
The MCP server's studio_mode (action: take) 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
{ "jsonrpc": "2.0", "id": 1, "method": "staging.take", "params": { "transition": { "kind": "cut" } }}lightair call staging.take '{"transition":{"kind":"cut"}}'const result = lightair.call("staging.take", {"transition":{"kind":"cut"}});Result
{ "enabled": true, "staged": null, "program": "019ad3f2-7d20-7b11-8c03-5a2e9f1b6d21", "transition": { "kind": "fade", "duration_ms": 300 } }