Check an element against a placement safe area
check_safe_areaCheck whether a caption, logo, or button rectangle stays inside a placement's published safe area; returns inside or intrudes with px overrun per edge so you can validate layouts before export.
Instructions
Check whether a rectangle (a caption, logo or button, in px on the placement's own frame, origin top-left) stays inside the placement's published safe area, and by how many px it intrudes past each edge if not. Use this to validate a layout before export; use get_social_media_placement for the raw insets. Returns verdict "inside", "intrudes" or "unknown"; "unknown" means the platform publishes no fixed safe area (TikTok) and comes with the reason instead of a guess. Errors on an unknown placement id or a box with non-positive size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Element's left edge in px from the frame's left edge. | |
| y | Yes | Element's top edge in px from the frame's top edge. | |
| width | Yes | Element width in px. | |
| height | Yes | Element height in px. | |
| placementId | Yes | Placement id, e.g. instagram-reels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | Yes | ||
| frame | Yes | ||
| verdict | Yes | ||
| safeRectPx | Yes | ||
| intrusionPx | Yes | ||
| placementId | Yes | ||
| withinFrame | Yes | ||
| safeAreaKind | Yes | ||
| referenceToolUrl | Yes | ||
| unpublishedReason | Yes | ||
| firstPartySourceUrl | Yes |