# editor.projects.new

Source: https://docs.lightair.app/developers/remote-api/editor.projects.new

> Makes a new Editor project and opens it.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | no | Its name. Default "Untitled". |
| `size` | `[number, number] | string` | no | Its first canvas's size: [width, height] (16 or more), or `landscape`, `vertical`, `square`, `portrait`. |
| `fps` | `number` | no | Its first canvas's frame rate, 1 to 240. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | no | The new project's id. |

## Errors

A state error (-32005) when no workspace is open.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_projects (action: new)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "editor.projects.new", "params": { "name": "Highlights", "size": "vertical", "fps": 30 } }
```

Result:

```json
{ "id": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d" }
```

## Related

- [editor.projects.open](https://docs.lightair.app/developers/remote-api/editor.projects.open.md)
- [editor.media.add](https://docs.lightair.app/developers/remote-api/editor.media.add.md)
