editor.projects.rename
Renames the open Editor project, or the one you name (which is opened).
JSON-RPC 2.0project.write
Parameters
- namestringrequiredIts new name.
- projectstringAnother project's id or name, opened first.
Errors
Not found (-32004) for an unknown project. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it.
Events
Subscribers to events get editor.changed.
From an AI agent
The MCP server's editor_projects (action: rename) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.projects.rename", "params": {}}lightair call editor.projects.renameconst result = lightair.call("editor.projects.rename", {});