moveClip
Reorder a placed clip by specifying its ID and the clip it should play before; omit the target to move it last. Keeps all trims, effects, and annotations anchored.
Instructions
Reorder a placed clip: move clipId so it plays just before beforeClipId (pass null, or omit it, to move it last). Ids come from getCurrentDocument, where each clip carries its index and its label in reason. This preserves every clip id, every source range, every trim, and the zooms / speed regions / annotations anchored to each clip. This is the tool for 'swap these clips', 'put X first' and 'change the clip order' — replaceTimeline cannot reorder anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clipId | Yes | ||
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. | |
| beforeClipId | No |