state.get
Gives the whole show at a glance: the program scene, canvases, scenes with their objects, sources, mixer tracks and outputs.
JSON-RPC 2.0project.read
Start here. Every scene lists its objects back to front, with their position and size in the primary canvas's pixels.
Each object has id, name, kind (its source's kind, or group), source, parent, visible, locked, x, y, width, height, rotation and opacity.
outputs holds recording (as record.status gives it), streaming (as stream.status gives it), virtual_camera {active} and clips {active}.
Parameters
None.
Result
- workspacestringThe open workspace's name.
- program{ id: string, name: string } | nullThe scene on air.
- editingstring | nullThe id of the scene selected in the window.
- canvases{ id: string, name: string, width: number, height: number, fps: number }[]Every canvas.
- scenes{ id: string, name: string, on_air: boolean, objects: object[] }[]Every scene with its objects, back to front.
- sources{ id: string, name: string, kind: string }[]Every source.
- tracks{ id: string, name: string, source: string, volume_db: number, muted: boolean }[]Every mixer track.
- outputs{ recording: object, streaming: object, virtual_camera: { active: boolean }, clips: { active: boolean } }What's running.
From an AI agent
The MCP server's get_state reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "state.get"}lightair call state.getconst result = lightair.call("state.get", {});