Restructure a segment
segment_restructureChange what a segment is. No render is ever lost: what a change replaces goes to the bin.
combine: merge with a neighboring segment. The kept segment's prompts and renders stay over the combined length (a clip too short plays over its image; B-roll too short is refused); the other's go to the bin. Its sound effects and overlays join the kept segment.
change_type: to an image, real photo or B-roll (both fetched). Clips and talking heads come from render action=animate. keep_image turns a clip back into its image, keeping the render. The prompts carry over unchanged; render the segment again. A real photo or B-roll takes the searches it had before; one that had none gets them written by a small AI step in the background, which writes only its searches and spends credits (get_status wait=true); it renders once that finishes.
rewrite: an AI rewrite of the prompts from feedback, in the background: a small AI step that spends credits (get_status wait=true); render the image and clip again after. For exact text, use segment_edit set_prompts.
Sound effects and overlays always survive; change an overlay's text with editor_edit scene_note. Later segments may renumber: read the storyboard again.
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": {
"action": "<action>",
"project_id": "<project_id>",
"segment_number": "<segment_number>"
},
"name": "segment_restructure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | change_type: the new kind | |
| keep | No | combine: whose prompts and renders survive | this |
| action | Yes | combine: with_segment_number, optional keep; change_type: to, optional keep_image; rewrite: feedback | |
| feedback | No | rewrite: what to change, e.g. "make this a close-up" | |
| keep_image | No | change_type from a clip to image: keep the rendered image | |
| project_id | Yes | Project id | |
| segment_number | Yes | Segment number (1-based, from storyboard_read) | |
| with_segment_number | No | combine: the neighboring segment |