Skip to content
Changelog

editor.canvases.delete

Deletes a canvas from the open project; a project keeps at least one.

JSON-RPC 2.0project.write

An AI agent connected over MCP asks the person first, unless AI agents may go live without asking is on in Settings › Remote API.

Parameters

  • canvasstringrequiredThe canvas's id or name.

Errors

Not found (-32004) for an unknown canvas. A state error (-32005) for the last canvas. 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 delete_editor_canvas reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "editor.canvases.delete",
"params": {}
}

editor.canvases.list