# panic.privacy

Source: https://docs.lightair.app/developers/remote-api/panic.privacy

> Switches to a privacy scene and mutes the microphones, or goes back to how things were.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Panic. It changes what viewers see or hear. Script plugins need the `project.write` permission.

The privacy scene is the one named, or a scene whose name has "Be right back", "BRB" or "privacy" in it. Turning it off puts the scene that was on air back and unmutes what it muted.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `on` | `boolean` | no | On (true) or off (false). Default true. |
| `scene` | `string` | no | The privacy scene's id or name. |

## Errors

A state error (-32005) when there's no privacy scene: make a "Be right back" scene.

## Events

- `panic.state`
- `scene.program`
- `audio.mute`

## From an AI agent

The MCP server's `panic (action: privacy or privacy_off)` reaches this method. Because it changes what viewers see or hear, Lightair can ask the person first.

## Related

- [panic.mute_all](https://docs.lightair.app/developers/remote-api/panic.mute_all.md)
- [panic.stop_all](https://docs.lightair.app/developers/remote-api/panic.stop_all.md)
