Write a scene with AI
write_sceneThe AI director writes one scene from an instruction, in the video's look. With sceneId it rewrites that scene — its layout, motion, style or content ("make it a before/after", "show the dashboard filling up", "punchier, with the numbers counting up") — keeping what you don't ask to change; without sceneId it adds a new scene at position (default: the end), optionally starting from a kit block (list_video_blocks). The scene is checked against the authoring rules and fixed automatically before it is saved. Uses 1 AI credit per call (refunded if it fails). For plain copy, timing or narration changes use update_scene instead (free and instant).
Requires: demos:read, demos:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | New scenes: a kit block to start from (list_video_blocks). | |
| sceneId | No | The scene to rewrite (get_video). Leave it out to add a new scene. | |
| videoId | Yes | Video id (from list_videos), e.g. "v_Ab12Cd34Ef56Gh78". | |
| position | No | New scenes: the index to insert at (0 = first; default: the end). | |
| instruction | Yes | What the scene should show or how to change it: the idea, the words on screen (quoted), the motion, the media to use. |