Create a caption track from a caption item
create_caption_trackAdds a caption track to a Premiere Pro sequence from an imported caption file, placing the file's 0:00 at a chosen timeline time. Use it to attach subtitles or closed captions.
Instructions
Add a caption track to a sequence from a caption project item already in the project (an imported .srt, .scc, .mcc, .xml or .stl file), with the file's 0:00 at a time on the timeline. The track count is checked before and after, which exports the sequence to a temporary project file twice, so the call takes a few seconds. The result is read back: returns the caption item, start, format, caption_tracks (count after) and track (the new track's captions: start, end in sequence seconds, text). Fails with BAD_ARGS when the item is not a caption file. Use import_captions_file to import a file and create the track in one call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_caption_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Timeline time the caption file's 0:00 maps to, in seconds. Default 0. | |
| format | No | Caption track format: "subtitle" (default; plain subtitles), "cea608", "cea708" (broadcast closed captions), "teletext", "open_ebu" (EBU open subtitles), "op42", "op47". | |
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". | |
| 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. |