video_validate_text_layout
Validate text overlays before rendering to catch overlap, low contrast, unsafe positioning, excessive sequences, and missing shadows.
Instructions
Validate a set of text overlays for visual failure modes before rendering.
Checks for: text overlap, low contrast, unsafe positioning, excessive sequential overlays, and missing shadows.
Args: overlays: List of overlay specs with keys: text, position, size, color, shadow (optional), start_time (optional), duration (optional). video_width: Video width in pixels. video_height: Video height in pixels. background_color: Background hex color for contrast checking.
Returns: dict with warnings list and clean boolean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overlays | Yes | ||
| overwrite | No | Explicitly allow replacing existing media. Existing non-media files are protected. | |
| video_width | No | ||
| video_height | No | ||
| background_color | No | #000000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||