Add a text title
add_text_titleAdds a text title and optional subtitle to a Premiere Pro timeline by placing an After Effects template, setting duration and position when native text layers are unavailable.
Instructions
Put a text title on the timeline in one call: places a title template, sets its text (and subtitle), its duration and optionally its position. Premiere Pro's scripting API cannot create native text layers (Graphics > New Layer > Text), and Premiere-made templates such as Basic Title do not expose their text, so the title is an After Effects template: by default Premiere's bundled "[AE] Sports Package/Sports Text Background.mogrt" (Title + Subtitle). Any After Effects template with a text field works as template_path (see find_mogrt_files with details=true). Returns the clip, text and subtitle (read back), text_field, position and template_path. Edit it later with set_mogrt_text.
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": {
"text": "<text>"
},
"name": "add_text_title"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Title text (the template's first text field). Use "\n" for a line break. | |
| time | No | Start, in seconds of sequence time. Default 0. | |
| duration | No | Length of the title, in seconds. Default 5. | |
| position | No | Motion > Position of the clip, normalised [x, y] (0-1 of the frame): [0.5, 0.5] = unchanged centre, [0.5, 0.8] moves the graphic down. Default: the template's own placement. | |
| subtitle | No | Text for the template's second text field, if it has one. Default 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. | |
| template_path | No | Another .mogrt made in After Effects (absolute path); its first text field receives text. A Premiere-made template or one without a text field fails with UNSUPPORTED before anything is placed. Default: the bundled Sports Text Background template. | |
| video_track_index | No | 0-based video track (0 = V1). Default 1 (V2). Missing tracks are added. |