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.
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": {
"document": "<document>"
},
"name": "autolayout_design_document"
}
}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 |