# scene.rename

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

> Renames a scene.

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 |
|---|---|---|---|
| `scene` | `string` | yes | The scene's id or name. |
| `name` | `string` | yes | Its new name. |

## Errors

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

## Events

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

## From an AI agent

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

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "scene.rename", "params": { "scene": "Scene 2", "name": "Interview" } }
```

Result:

```json
{}
```

## Related

- [scene.create](https://docs.lightair.app/developers/remote-api/scene.create.md)
- [scene.remove](https://docs.lightair.app/developers/remote-api/scene.remove.md)
