# staging.enable

Source: https://docs.lightair.app/developers/remote-api/staging.enable

> Turns studio mode on or off.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Studio mode. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `enabled` | `boolean` | no | On or off. Default true. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `enabled` | `boolean` | no | Whether studio mode is on. |
| `staged` | `string | null` | no | The staged scene's id. |
| `program` | `string | null` | no | The program scene's id. |
| `transition` | `{ kind: string, duration_ms: number }` | no | The transition a take would use: the staged scene's own, else the workspace's. |

## Events

- `staging.state`

## From an AI agent

The MCP server's `studio_mode (action: on or off)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "staging.enable", "params": { "enabled": true } }
```

Result:

```json
{ "enabled": true, "staged": null, "program": "019ad3f2-6c1e-7a40-9b52-3f1d2e8c4a10", "transition": { "kind": "fade", "duration_ms": 300 } }
```

## Related

- [staging.stage](https://docs.lightair.app/developers/remote-api/staging.stage.md)
- [staging.get](https://docs.lightair.app/developers/remote-api/staging.get.md)
