Skip to main content
This skill is available as a machine-readable YAML playbook — append .md to any docs page for raw markdown, or install the Framelane skill. Drive the calls through the authenticated action MCP at https://mcp.framelane.io/mcp. Load it into any MCP-capable agent to get the complete workflow without writing integration code.

What this skill does

Given a source video URL and a time range, orchestrates:
  1. Trimin_point / out_point on the video element
  2. Crop to verticalcrop_left / crop_right center-crop for 16:9 → 9:16 (auto-computed when omitted)
  3. TranscribePOST /v1/tasks/transcribe with word-level timestamps
  4. Segment — group words into caption lines (sentence breaks or pauses > 0.8s)
  5. Style — optional opening title with difference blend motion; caption lines cycle colorboxglow
  6. RenderPOST /v1/renders at 1080×1920 using the TikTok Captions recipe as the composition template

Example user prompt

Take the section from 00:22:43 to 00:44:56, crop to vertical, add an opening title with Difference blend, then burn in word-timed captions — mix color, box, and glow styles across different fonts.
The agent converts timecodes to seconds (13632696), runs this skill, and posts the resulting RenderRequest.

Load via MCP

Inputs

Output

Timecode conversion

Convert HH:MM:SS to seconds before calling the skill:

Vertical crop (16:9 → 9:16)

When crop_left / crop_right are omitted, center-crop a landscape source:
For 16:9 source: crop_left = crop_right ≈ 0.342.

Caption line rules

After transcription, the agent:
  1. Filters words to [start_seconds, end_seconds] and offsets to composition time (0 = clip start)
  2. Groups words into lines — split on . ? ! or a gap > 0.8s between words
  3. Skips words inside opening_title_duration when a title is set
  4. Creates one text element per line — all reuse "id": "t1"
  5. Sets each line’s time to the first word’s start and duration to last_word.end − time
  6. Cycles word_animation.style: colorboxglowcolor
Word timestamps in word_animation.words are absolute composition seconds — the same clock as each text element’s time. See Word Animation Examples.

Render composition template

Follow the TikTok Captions recipe for element shapes. Minimal skeleton:
Each additional caption line is another text element with the same "id": "t1" and the next style in the cycle.