# editor.clip.split

Source: https://docs.lightair.app/developers/remote-api/editor.clip.split

> Splits a clip at a moment, with its linked clips, or everything under that moment.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Editor. Script plugins need the `project.write` permission.

With `clip`, its linked clips are split with it unless `alone`. Without `clip`, everything under the moment is split, as the Split command does.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `at_ms` | `number` | no | A moment on the canvas's timeline. Default: the playhead. |
| `clip` | `string` | no | The clip's id. |
| `alone` | `boolean` | no | Split the clip without its linked clips. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `right` | `string` | no | With `clip`: the new right-hand clip's id. |
| `split` | `{ clip: string, right: string }[]` | no | With `clip`: every clip split and its right-hand part. |

## Errors

A state error (-32005) when the clip doesn't cross that moment. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it. Invalid params (-32602) for a clip id that can't be read; not found (-32004) for a clip that isn't on the canvas.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_clip (action: split)` reaches this method.

## Related

- [editor.clip.trim](https://docs.lightair.app/developers/remote-api/editor.clip.trim.md)
- [editor.clip.delete](https://docs.lightair.app/developers/remote-api/editor.clip.delete.md)
