autolayout_design_document
Repair overflowing text frames: wrap text, shrink to fit, then grow frame in safe area or truncate on request, returning the adjusted document and QA report.
Instructions
Hard-wrap overflowing text, shrink it deterministically, then grow its frame inside the safe area or truncate only when requested. Returns the adjusted document, decisions, and QA report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Design document whose text frames should be repaired | |
| onOverflow | No | After shrinking to the floor: fail, grow inside the safe area, or truncate with an ellipsis | grow |
| minimumFontScale | No | Smallest allowed text size as a fraction of its authored size |