Create text layer
create_text_layerCreates a styled point text layer in After Effects, places it at the composition center or a specified position, and returns the layer, text summary, and bounds.
Instructions
Create a point text layer with optional style. By default the anchor point is moved to the text's visual center (centerAnchor) and the layer is placed at the comp center, so 'position' is where the middle of the text lands. Newlines in text become paragraph breaks. Returns the layer, a compact text summary and the text bounds (layer space).
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": "create_text_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | Layer name (default: the text). | |
| text | Yes | Text content. '\n' = new paragraph. | |
| style | No | Text style. Only the fields you pass are changed. | |
| position | No | [x, y] in comp pixels (default comp center). | |
| centerAnchor | No | Move anchor to the visual center of the text (default true). false = AE default (baseline). |