Write an SRT file from sequence markers
srt_from_markersConvert sequence markers into an .srt caption file so marker names or comments become timed captions ready to import into Premiere Pro.
Instructions
Turn a sequence's markers into an .srt caption file: each marker becomes a caption at its time, with the marker's name (or comment) as text. A marker with a duration lasts that long; a point marker lasts until the next marker, at most default_duration seconds. Fails with BAD_ARGS when no marker has text. Returns file_path, count, skipped markers (no text, no room) and the segments. Fails with FILE_EXISTS if the file exists unless overwrite is true. Follow with import_captions_file to put the captions on the sequence.
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": "srt_from_markers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | The .srt file to write. Absolute path; missing folders are created. | |
| overwrite | No | Replace the file if it exists. Default false. | |
| text_from | No | Which marker field becomes the caption text. Default "name_or_comment" (the name, or the comment when the name is empty). | |
| 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. | |
| default_duration | No | Length of captions made from point markers, in seconds (shortened to end at the next marker). Default 3. |