write_statonic_project
Create JSON project files for the Statonic video editor to structure video content with text overlays and track segments.
Instructions
Write a Statonic project JSON file.
TEXT STYLING & POSITIONING RULES (follow these automatically):
Font size: 75-100px (use 85-90 for multi-line text, adjust based on text length)
Break text into 2-3 lines using \n to prevent going off screen
Position: y = 0.25 to 0.31 (lower middle of top half), x = 0 (centered)
Coordinate system: x=0,y=0 is center; y=1 is top; y=-1 is bottom
After creating project, use render_preview to verify text doesn't block subjects
If blocking subject's face/upper body, adjust y down to 0.22-0.25
HOOK FORMULA EXAMPLES (proven high-performance):
"how to [VERB] so fast it feels illegal" (CAPS on key verb, e.g. "how to LEARN\nso fast it\nfeels illegal")
"99% of [audience] do X the WRONG way" (specific number creates credibility)
"the [topic] trick nobody talks about"
2-3 lines, 4-7 words each — NOT one long sentence
Use CAPS for ONE emphasis word per line, not the whole text
Use generate_hook_options tool to get 5 high-quality hook variants before writing
Example text formatting:
"how to study chemistry" → "how to study\nchemistry and get\n99/100" (fontSize: 90)
"ACTIVE RECALL 🤫" → single line is fine (fontSize: 75-100)
IMPORTANT: VideoSegment requires: src (not sourceFilePath), name, fileDurationUs, sourceWidth, sourceHeight. Track requires: label. See example:
{ "name": "My Video", "canvas": {"width": 1080, "height": 1920}, "tracks": [ { "id": "track-1", "label": "Base", "type": "video", "segments": [{ "id": "seg-1", "type": "video", "src": "/path/to/video.mp4", "name": "clip-name", "startUs": 0, "durationUs": 4200000, "sourceStartUs": 0, "sourceDurationUs": 4200000, "fileDurationUs": 5000000, "sourceWidth": 1080, "sourceHeight": 1920, "clipX": 0, "clipY": 0, "clipScale": 1, "cropLeft": 0, "cropRight": 0, "cropTop": 0, "cropBottom": 0 }] }, { "id": "track-2", "label": "Text", "type": "text", "segments": [{ "id": "text-1", "type": "text", "text": "Hello", "startUs": 0, "durationUs": 2000000, "x": 0, "y": 0, "fontSize": 80, "color": "#ffffff", "fontFamily": "Arial" }] } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Complete Statonic project JSON | |
| filename | Yes | Output filename (e.g., "biology-study-video.json") |