Add Layer
add_layerCreates and configures After Effects layers such as solids, text, shapes, footage, cameras, lights, and meshes with position, timing, fit, and styling options.
Instructions
Add a layer. item_id: footage/precomp source. center: camera/light. position with 3 values turns 3D on. box_size: box text; text_style as set_text. anchor moves the anchor onto the content (as set_anchor) before position, so position places e.g. the text's center. shape: a shape layer's first shape (as add_shape). mesh: a 3D primitive, centred on position, color is its base color (After Effects 26.3+; moves the comp to the renderer that draws meshes, reported as renderer_changed; list_properties has its size, bevel and slices). fit_to (shape): a rect that keeps fitting that layer's content + padding (a highlight behind text). fit: scale to cover or fit inside the comp frame. Timing: in/out are comp times; source_in is the source time shown at in (no start maths); stretch in percent (200 = half speed).
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": {
"comp_id": "<comp_id>",
"kind": "<kind>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| comp_id | Yes | ||
| options | No |