create_variations
Generates project variations by applying text replacements and video clip swaps to create modified versions of Statonic video projects.
Instructions
Generate project variation files from the currently open project's variation session.
IMPORTANT: Do NOT call get_reference_frames or any other tool before this one. Go straight to create_variations — all the information you need (project structure, segment IDs, available clips) is already in variation-context.json.
The user must have clicked "Variations" in the editor toolbar first, which writes variation-context.json to ~/Library/Application Support/Statonic/. Read that file to get:
project: the full project JSON with all segment IDs
clips: the available clip library with id, name, path, category, duration
variationsFolder: where to write the output files
Each variation is a full copy of the project with:
textChanges: find/replace rules applied to ALL text segment "text" fields (case-insensitive)
clipOverrides: swap specific video segments by segmentId — use the segment IDs from project.tracks[].segments[].id and clip paths from the clips array
Writes each variation as [name].json to the variationsFolder. The editor picks them up automatically.
IMPORTANT: After calling create_variations, do NOT call write_statonic_project, render_preview, get_suitable_audio, or any other tool. Just return the summary and stop — the editor handles everything from here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variations | Yes | Array of variations to generate |