editor.projects.new
Makes a new Editor project and opens it.
JSON-RPC 2.0project.write
Parameters
- namestringIts name. Default "Untitled".
- size[number, number] | stringIts first canvas's size: [width, height] (16 or more), or
landscape,vertical,square,portrait. - fpsnumberIts first canvas's frame rate, 1 to 240.
Result
- idstringThe new project's id.
Errors
A state error (-32005) when no workspace is open.
Events
Subscribers to events get editor.changed.
From an AI agent
The MCP server's editor_projects (action: new) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.projects.new", "params": { "name": "Highlights", "size": "vertical", "fps": 30 }}lightair call editor.projects.new '{"name":"Highlights","size":"vertical","fps":30}'const result = lightair.call("editor.projects.new", {"name":"Highlights","size":"vertical","fps":30});Result
{ "id": "019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d" }