editor.markers.add
Adds a marker at a moment, unless one is there already.
JSON-RPC 2.0project.write
Parameters
- at_msnumberA moment on the canvas's timeline. Default: the playhead.
- namestringIts name.
- colourstring"#RRGGBB".
- len_msnumberIts length. Default 0.
- canvasstringA canvas's id or name, shown first. Default: the canvas shown.
Result
- markersobject[]The canvas's markers.
Errors
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_markers (action: add) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.markers.add", "params": {}}lightair call editor.markers.addconst result = lightair.call("editor.markers.add", {});