Skip to content
Changelog

editor.range.set

Sets the in and out marks of the canvas shown.

JSON-RPC 2.0project.write

Parameters

  • canvasstringA canvas's id or name, shown first. Default: the canvas shown.
  • in_msnumberThe in mark. Kept as it is when not given.
  • out_msnumberThe out mark. Kept as it is when not given.

Result

  • in_msnumberThe in mark.
  • out_msnumber | nullThe out mark; null for the end.

Errors

Invalid params (-32602) without either, or with the out mark before the in mark. 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_canvases (action: range) reaches this method.

Example

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

editor.range.clear · editor.export.start