Edit a segment
segment_editChange one segment without losing renders; only split spends credits. Returns the changed segments.
set_prompts: write prompts verbatim, no AI rewrite. The renders stay as they are: render the segment again to apply the new prompts. set_continuation: make this segment's image continue an earlier one's (same composition, only the change); render the image again. rollback: restore one of the last 5 renders of the image or clip; the current one takes its place, so it can be undone, and the prompt editor's model stays as it is. split: cut into 2-4 parts; the inheriting part keeps the prompts and renders; the others start empty and get prompts written from their narration in the background (spends credits), or give them prompts with set_prompts. Later segments renumber: read the storyboard again before more edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| what | No | rollback: restore the image or the clip | |
| index | No | rollback: which earlier render, 0 = the latest | |
| action | Yes | set_prompts: image_prompt, video_prompt and/or media_queries; set_continuation: continues_from; rollback: what, optional index; split: offsets_ms, optional inherit_index | |
| offsets_ms | No | split: 1-3 ascending cut points, in ms from the segment's start; word timings: voiceover_read action=blocks include_subtitle_data=true | |
| project_id | Yes | Project id | |
| image_prompt | No | set_prompts: the image prompt | |
| video_prompt | No | set_prompts: the motion used when the image is animated | |
| inherit_index | No | split: the part (0-based) that keeps the prompts and renders | |
| media_queries | No | set_prompts: searches for a real photo or B-roll | |
| continues_from | No | set_continuation: an EARLIER segment number; 0 clears the link | |
| segment_number | Yes | Segment number (1-based, from storyboard_read) |