Set text content
set_text_contentChange a text layer's content while keeping its style, optionally setting a Source Text keyframe at a given time to animate or rekey the text in After Effects.
Instructions
Change the text of a text layer, keeping its style. With 'time' a Source Text keyframe is set (hold keyframe) at that time. If Source Text is already keyframed and no time is given, a keyframe is set at the comp's current time.
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": {
"layer": "<layer>",
"text": "<text>"
},
"name": "set_text_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| text | Yes | New text. '\n' = new paragraph. | |
| time | No | Optional: set as a Source Text keyframe at this time. | |
| layer | Yes | Text layer: 1-based index, name, or {id}. |