flow_extend_video
Continue or edit a video clip via prompts: extend scenes by 3–10 seconds per turn up to 30 seconds, or change visual details such as sky color.
Instructions
Continue or edit a video with Gemini Omni Flash.
Best: pass previous_interaction_id from an earlier video result (keeps full context, supports new dialogue). Otherwise pass video_path to upload a clip of 15 s or less. Extension adds 3-10 s per turn, up to 30 s total. Prompts like "Make the sky purple" edit the clip instead of extending it.
Args: prompt: How the scene continues, or what to change. video_path: Local MP4 to extend (uploaded through the Files API). previous_interaction_id: interaction_id printed by an earlier video tool. duration_seconds: Length of the new part, 3-10. resolution: '360p', '720p', '1080p' or '4k'. reference_image_paths: Images of new characters/objects to bring in. confirm_cost: Set true only after the user accepted the cost estimate. output_dir: Override the output folder. aspect_ratio: '16:9' or '9:16'. Usually not needed: a local clip's shape is detected. Pass it if a vertical clip comes back landscape.
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": {
"prompt": "<prompt>"
},
"name": "flow_extend_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| output_dir | No | ||
| resolution | No | 720p | |
| video_path | No | ||
| aspect_ratio | No | ||
| confirm_cost | No | ||
| duration_seconds | No | ||
| reference_image_paths | No | ||
| previous_interaction_id | No |