# ui.select

Source: https://docs.lightair.app/developers/remote-api/ui.select

> Selects a scene, and optionally an object in it, in Lightair's window.

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

Without `scene`, the scene being edited is used.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `scene` | `string` | no | A scene's id or name. |
| `object` | `string` | no | An object's id or name in that scene. |

## Errors

Not found (-32004) when the scene or object doesn't exist.

## From an AI agent

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

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "ui.select", "params": { "scene": "Main", "object": "Webcam" } }
```

Result:

```json
{}
```

## Related

- [state.get](https://docs.lightair.app/developers/remote-api/state.get.md)
- [object.update](https://docs.lightair.app/developers/remote-api/object.update.md)
