Captions
captionsCreate, edit, retime, export, and burn styled subtitle tracks from SRT, VTT, or transcripts, and check platform-safe zones for social video.
Instructions
Captions from transcripts or subtitle files. create_track (import an SRT/VTT, or a transcript, as a caption track), read (cues of a subtitle file or transcript), edit (replace text/times of cues by index; writes an SRT, or rewrites the .srt/.vtt given as source; a transcript is never changed: use the returned path as source next), retime (shift and/or stretch), export (SRT or VTT), safe_zone_check (caption block vs. the platform's UI-safe area: youtube, shorts, reels, tiktok, instagram_feed), burn_style (render styled PNG captions, optionally one card per word with the spoken word highlighted like Shorts, and place them on a video track). Premiere's scripting API cannot read caption tracks already in a sequence: read works on files and transcripts.
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": {
"action": "<action>"
},
"name": "captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | No | ||
| shift | No | ||
| start | No | create_track: offset (s) | |
| style | No | ||
| track | No | V1, A2... (1-based) | |
| action | Yes | ||
| factor | No | ||
| format | No | ||
| output | No | ||
| source | No | Subtitle file (.srt/.vtt) or transcript id (tr_...) | |
| project | No | ||
| platform | No | ||
| sequence | No | Sequence id/name (default: active) | |
| max_chars | No | ||
| word_highlight | No | burn_style: one card per word, current word highlighted | |
| expected_project_path | No |