Add video layer
add_video_layerAdd a video layer. The clip must already be uploaded; clips are uploaded in the MorphaReels editor. An upload returns { filename, name }: pass filename (the stored clip's id) as clip, and name as the layer's label. To duplicate an existing layer, reuse its clip filename — the editor auto-assigns a fresh id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"clip": "<clip>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>",
"projectId": "<projectId>"
},
"name": "add_video_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Centre x in 1080-wide base coords. | |
| y | Yes | Centre y in 1920-tall base coords. | |
| clip | Yes | The stored clip filename an upload returned (an id such as 3f2a9c1e-….mp4, or an older project's own name). | |
| name | No | Optional label people see in the Inspector and Timeline: pass the upload's returned `name`. | |
| width | Yes | Width in px (must be > 0). | |
| height | Yes | Height in px (must be > 0). | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the call succeeded. | |
| data | No | The payload, shaped by the tool. | |
| note | No | What to do next when not ready. | |
| error | No | Why it failed. | |
| status | No | For cache-backed readers: whether the answer was ready. | |
| editorUrl | No | Opens this project in the editor. |