Import a caption file onto a sequence
import_captions_fileImport a caption file (.srt, .scc, .mcc, .xml, .stl) into a Premiere Pro project or bin and create a caption track on a sequence in one call.
Instructions
Import a caption file (.srt, .scc, .mcc, .xml, .stl) into the project (root or a bin) and create a caption track from it on a sequence, in one call. Use create_caption_track when the caption file is already a project item. Returns file_path, item (the new caption project item), start, format, caption_tracks and track (the new track's captions read back, as create_caption_track). Use write_srt_file or srt_from_markers first to make an .srt.
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": {
"file_path": "<file_path>"
},
"name": "import_captions_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Timeline time the caption file's 0:00 maps to, in seconds. Default 0. | |
| bin_id | No | Stable id of the bin. Omit all bin_* arguments to use the project root. | |
| format | No | Caption track format: "subtitle" (default; plain subtitles), "cea608", "cea708" (broadcast closed captions), "teletext", "open_ebu" (EBU open subtitles), "op42", "op47". | |
| bin_name | No | Bin name; the first match is used. | |
| bin_path | No | Bin path, e.g. "Footage/Day 1". | |
| file_path | Yes | The caption file. Absolute path. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |