layout_assistant
Diagnose page layout problems like tight or overlapping text and items outside margins, then preview or apply fixes in Adobe InDesign.
Instructions
Diagnose or fix page layout (overlapping/tight text, items outside margins). Modes: diagnose | preview | fix. Prefer after scan_document (+ analyze_page for title roles). Units are points. fix applies via execute_batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | diagnose: report issues; preview: dry-run stack/margin plan; fix: execute_batch the plan | |
| uuids | No | Limit text stacking to these uuids | |
| marginPt | No | Safe margin from page edges (default 24pt) | |
| minGapPt | No | Minimum vertical gap between text frames (diagnose default 12, fix default 18) | |
| pageIndex | Yes | 0-based page index | |
| fixMargins | No | Also clamp outside-safe items (default true for preview/fix) | |
| timeoutSec | No | ||
| expandTitles | No | Expand title-like frames to estimated text height (default true for preview/fix) |