Skip to content
Changelog

editor.zooms.remove

Removes a zoom.

JSON-RPC 2.0project.write

Parameters

  • zoomnumberrequiredIts number from 1.
  • canvasstringA canvas's id or name, shown first. Default: the canvas shown.

Result

  • zoomsnumberHow many are left.

Errors

Not found (-32004) for no such zoom. 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_zooms (action: remove) reaches this method.

Example

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

editor.zooms.list