add_text_overlay
Add a text overlay to the video timeline. Use a presetId to auto-apply a preset style (cinematic-title, lower-third, subtitle, chapter-card, quote, social, breaking-news, credits-roll), or provide custom textConfig. The text field overrides the preset default text. Auto-creates an overlay track if none exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exit | No | Exit animation | |
| size | No | Normalized overlay size; overrides width/height if provided | |
| text | Yes | The text to display | |
| color | No | Text color as hex (e.g. #FFFFFF) or rgba (overrides preset) | |
| enter | No | Entrance animation | |
| width | No | Width (normalized 0–1 of canvas). Uses preset default if not specified. | |
| border | No | Overlay item border styling | |
| editId | Yes | The edit ID | |
| height | No | Height (normalized 0–1 of canvas). Uses preset default if not specified. | |
| shadow | No | Overlay item drop shadow | |
| opacity | No | Overall opacity 0–1 (default 1) | |
| trackId | No | Overlay track ID (auto-creates a track if not provided) | |
| duration | No | How long to show the text (seconds, uses preset default if not specified) | |
| fontSize | No | Font size in points (overrides preset) | |
| position | No | Normalized center position; overrides positionX/positionY if provided | |
| presetId | No | Text preset ID (cinematic-title, lower-third, subtitle, chapter-card, quote, social, breaking-news, credits-roll). Provides default styling, animation, and position. | |
| rotation | No | Rotation in degrees | |
| fontStyle | No | Font style (overrides preset) | |
| keyframes | No | Transform keyframes relative to item start | |
| positionX | No | Horizontal position (0 = left, 0.5 = center, 1 = right). Uses preset default if not specified. | |
| positionY | No | Vertical position (0 = top, 0.5 = center, 1 = bottom). Uses preset default if not specified. | |
| startTime | No | When to show the text overlay (seconds from edit start) | |
| textAlign | No | Text alignment | |
| fontFamily | No | Font family (overrides preset). Available: Inter, Outfit, Playfair Display, Bebas Neue, Roboto Mono | |
| fontWeight | No | Font weight as 100-900, normal, or bold (overrides preset) | |
| lineHeight | No | Line-height multiplier | |
| lineStyles | No | Per-line style overrides keyed by zero-based line index | |
| textConfig | No | Full TextEffectConfig override/extension | |
| strokeColor | No | Text stroke/outline color | |
| strokeWidth | No | Text stroke/outline width | |
| workspaceId | Yes | The workspace ID | |
| borderRadius | No | Overlay item corner radius in 720p logical pixels | |
| letterSpacing | No | Letter spacing in points | |
| textAnimation | No | Per-character/word/line text animation | |
| textShadowBlur | No | Text shadow blur radius | |
| backgroundColor | No | Text background color | |
| textShadowColor | No | Text shadow color | |
| textShadowOffsetX | No | Text shadow horizontal offset | |
| textShadowOffsetY | No | Text shadow vertical offset | |
| backgroundPaddingX | No | Text background horizontal padding | |
| backgroundPaddingY | No | Text background vertical padding | |
| backgroundBorderRadius | No | Text background corner radius |