Set the text of a template clip
set_mogrt_textReplace text in an After Effects Motion Graphics Template clip while preserving font, size, and style; target a field by name or index and read back the updated text.
Instructions
Change the text of an After Effects Motion Graphics Template clip, keeping its font, size and style: the field's JSON document is read, only its textEditValue is replaced, and it is written back. By default the first text field changes; pass param_name or param_index for another (e.g. "Subtitle"). Use "\n" for a line break. Returns index, name, previous_text and text (read back). Graphics made in Premiere Pro (e.g. the bundled Basic Title) fail with UNSUPPORTED: Premiere does not expose their text to scripting.
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": "set_mogrt_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The new text. Use "\n" for a line break. | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| param_name | No | Parameter name as listed by list_mogrt_parameters (case-insensitive). Give this or param_index. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| param_index | No | 0-based parameter index from list_mogrt_parameters; used when param_name is not given. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |