List caption tracks and their text
list_caption_tracksRead caption tracks from a Premiere Pro sequence and return each track’s captions with start/end times and text, enabling caption inspection or extraction despite API limitations.
Instructions
Read the caption tracks of a sequence: for each track (0-based, top first) its captions with start and end (seconds of sequence time) and text. Premiere's scripting API has no caption access, so the sequence is exported to a temporary project file (Sequence.exportAsProject), parsed and the file deleted; nothing in the open project changes. text is null for a caption whose stored text could not be decoded. Use parse_srt_file to read a caption file instead.
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": "list_caption_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | Only this 0-based caption track. Default: all. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |