edit_video
Make a new version of a video in a video surface. Combine any of: remove to take ranges OUT and keep everything else ("cut that bit", "lose the radio shot": find the exact start and end with watch_video first); keep to keep ONLY one span and drop the rest ("just give me 0:10 to 0:20"); format mp4, mov or webm; width/height to resize (give one to keep the shape); aspect to center-crop to 16:9, 9:16, 1:1, 4:5, 4:3 or 3:4; fps; speed 0.25 to 4; mute. All times are in the ORIGINAL video's timeline. The reply's summary says in words what was done ("Original 0:30.08, result 0:28.38: removed 0:16 to 0:17.70"): check it against the request. The result is added to the surface as a new video (labelled " (edited)" unless you pass label), or replaces the original with replace: true. Results run up to 10 minutes and 1920px. Watch the result with watch_video before telling anyone it's done. Editor role required. Emits video.updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Output frame rate, 1 to 60. | |
| keep | No | The ONLY span to keep; everything outside it is dropped. | |
| mute | No | Drop the sound. | |
| slug | Yes | The workspace slug. Accepts bare or org-prefixed form. | |
| label | No | Label for the result. Max 60 chars. | |
| speed | No | Playback speed, 0.25 to 4. Sound keeps its pitch. | |
| width | No | Output width in px (16 to 1920). | |
| aspect | No | Center-crop to this shape. | |
| format | No | Output container. Defaults to the original's. | |
| height | No | Output height in px (16 to 1920). | |
| remove | No | Ranges to take OUT; everything else stays. Up to 20, no overlaps. | |
| replace | No | Replace the original video instead of adding a new one. Default false. | |
| video_id | No | The video's id, from list_videos. Optional when the surface holds a single video. | |
| surface_slug | No | Optional video surface slug. Omit for the first video surface. |