# state.get

Source: https://docs.lightair.app/developers/remote-api/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.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: App and state. Script plugins need the `project.read` permission.

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](/developers/remote-api/record.status) gives it), `streaming` (as [stream.status](/developers/remote-api/stream.status) gives it), `virtual_camera {active}` and `clips {active}`.

## Parameters

None.

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `workspace` | `string` | no | The open workspace's name. |
| `program` | `{ id: string, name: string } | null` | no | The scene on air. |
| `editing` | `string | null` | no | The id of the scene selected in the window. |
| `canvases` | `{ id: string, name: string, width: number, height: number, fps: number }[]` | no | Every canvas. |
| `scenes` | `{ id: string, name: string, on_air: boolean, objects: object[] }[]` | no | Every scene with its objects, back to front. |
| `sources` | `{ id: string, name: string, kind: string }[]` | no | Every source. |
| `tracks` | `{ id: string, name: string, source: string, volume_db: number, muted: boolean }[]` | no | Every mixer track. |
| `outputs` | `{ recording: object, streaming: object, virtual_camera: { active: boolean }, clips: { active: boolean } }` | no | What's running. |

## From an AI agent

The MCP server's `get_state` reaches this method.

## Related

- [workspace.get](https://docs.lightair.app/developers/remote-api/workspace.get.md)
- [stats.get](https://docs.lightair.app/developers/remote-api/stats.get.md)
- [events.subscribe](https://docs.lightair.app/developers/remote-api/events.subscribe.md)
