capcut_export_chapters
Reads CapCut timeline markers and converts them into a YouTube-ready chapter list (HH:MM:SS Title); validates chapter count, spacing, and 0:00 start, and can write a .txt file.
Instructions
Read timeline markers (time_marks from capcut_add_markers) and return a YouTube chapter list: HH:MM:SS Title. Times snap to the draft fps; the stamp is the second that contains that frame. Inserts 00:00:00 when no marker falls in the first second. Refuses a list YouTube will not use: fewer than 3 chapters, displayed times under 10 seconds apart (two markers in the same second count), or a last chapter shorter than 10 seconds against the draft duration. Optional out_path writes a .txt file and never overwrites. Dry-run by default when out_path is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | Draft folder name inside the drafts root (from capcut_list_drafts). | |
| dry_run | No | true (default): return the plan only. false: write to disk (CapCut must be closed). | |
| out_path | No | Absolute path of a new .txt file, for example chapters.txt. Omit to return the text only. | |
| zero_title | No | Title for the inserted 00:00:00 line. YouTube requires a first chapter at 0:00. | Start |