# scene.create

Source: https://docs.lightair.app/developers/remote-api/scene.create

> Adds an empty scene, and optionally puts it on air.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | yes | The new scene's name. |
| `switch` | `boolean` | no | Put it on air at once. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | no | The new scene's id. |
| `name` | `string` | no | Its name. |

## Errors

Invalid params (-32602) without `name`.

## Events

- `scene.list`
- `workspace.changed`

## From an AI agent

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

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "scene.create", "params": { "name": "Starting soon" } }
```

Result:

```json
{ "id": "019ad3f2-7d20-7b11-8c03-5a2e9f1b6d21", "name": "Starting soon" }
```

## Related

- [scene.switch](https://docs.lightair.app/developers/remote-api/scene.switch.md)
- [scene.rename](https://docs.lightair.app/developers/remote-api/scene.rename.md)
- [object.add](https://docs.lightair.app/developers/remote-api/object.add.md)
