Add text layer
add_text[write] Add a text layer (title, headline, lower third, label) on its own top lane; style fields override the preset. items places every word of a sheet in one save. Use for on-screen words that are not spoken captions. Not for captions (use add_caption_line or import_captions) or changing existing text (use set_text). Returns the changed clips' rows (with handles) and counts. The new layer's handle is in changed. Related: set_text, set_clip_animation, align_clip.
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": {
"project_id": "<project_id>"
},
"name": "add_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Frame-width % from centre (+ right). | |
| y | No | Frame-height % from centre (+ down). | |
| bg | No | Box behind, #rrggbb (default none). | |
| font | No | Font family (default Poppins). | |
| size | No | px at 1080p, 8–400 (default 72). | |
| text | No | The words (required). | |
| align | No | Line alignment (default center). | |
| color | No | #rrggbb (default #ffffff). | |
| items | No | Several layers; each takes the fields above. | |
| italic | No | Italic. | |
| preset | No | Seeds style and placement. | |
| shadow | No | Softness, px at 1080p, 0–60. | |
| stroke | No | Outline, px at 1080p, 0–20. | |
| weight | No | 100–900 (default 700). | |
| shadowX | No | Offset, px at 1080p, -60–60; with shadow 0, a hard shadow. | |
| shadowY | No | As shadowX, + = down. | |
| startMs | No | Start, ms (default 0). | |
| fitWidth | No | Fill this % of frame width (10–100) on one line; overrides size. | |
| maxWidth | No | Wrap width, % of frame, 20–100 (default 80). | |
| bgOpacity | No | Box opacity, 0–1 (default 1). | |
| uppercase | No | All caps. | |
| durationMs | No | Length, ms (default 3000). | |
| lineHeight | No | × size, 0.7–2.5 (default 1.15). | |
| project_id | Yes | The AskEditor project this acts on (from list_projects). | |
| strokeColor | No | Outline colour, #rrggbb (default #000000). | |
| letterSpacing | No | em, -0.1–0.5 (default 0). |