Skip to content
Changelog

camera.control

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

JSON-RPC 2.0project.write

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

  • sourcestringrequiredThe layer's source id or name.
  • controlobjectrequiredThe 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

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "camera.control",
"params": {
"source": "Phone camera",
"control": {
"zoom": 2
}
}
}

Result

{}

camera.status