# camera.control

Source: https://docs.lightair.app/developers/remote-api/camera.control

> Sends a camera control to a Phone camera layer's phone: zoom, torch, focus, exposure or white balance.

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

The fields of `control` are passed to the phone as they are, as Lightair Live's camera reads them (`{ "zoom": 2.0 }`, `{ "torch": 1.0 }`, …). The torch is a level from 0 to 1.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `source` | `string` | yes | The layer's source id or name. |
| `control` | `object` | yes | The control and its value. |

## Errors

Invalid params (-32602) without `source` or `control`. Not found (-32004) for an unknown layer.

## From an AI agent

The MCP server's `phone_camera (action: control)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "camera.control", "params": { "source": "Phone camera", "control": { "zoom": 2.0 } } }
```

Result:

```json
{}
```

## Related

- [camera.status](https://docs.lightair.app/developers/remote-api/camera.status.md)
