Skip to content
Changelog

editor.clip.add

Puts a medium from the project on the timeline as a clip.

JSON-RPC 2.0project.write

A video's sound comes apart as a linked clip.

Parameters

  • mediastringrequiredThe medium's id or name.
  • at_msnumberA moment on the canvas's timeline. Default: the playhead.
  • tracknumberA track's index.
  • canvasstringA canvas's id or name, shown first. Default: the canvas shown.

Result

  • clipsstring[]The clips made.

Errors

Not found (-32004) for an unknown medium. 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_clip (action: add) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "editor.clip.add",
"params": {
"media": "intro",
"at_ms": 0
}
}

Result

{ "clips": ["019ad3f6-5e6f-7071-8283-9e0f1a2b3c4d", "019ad3f6-6f70-7182-9394-0f1a2b3c4d5e"] }

editor.media.add · editor.clip.move