layout.analyze
Detect and resolve layout issues like overlapping elements, content overflow, and misplacement after editing components in Circuitry MCP Server.
Instructions
Analyze and fix layout issues after editing components.
Use for: Fixing overlaps, repositioning elements, adjusting sizes after edits.
Don't use for: Initial creation - use layout.createSection which handles positioning automatically.
Use autoFix: true to automatically apply fixes.
Issues detected:
Overlapping elements
Footer/header misplacement
Content overflow beyond screen
Elements clipped by screen edges
Workflow:
Create with
layout.createSection(handles positioning)After edits, use
layout.analyze({ autoFix: true })to fix issuesUse
screen.captureto verify
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenId | No | Screen ID or name to analyze (uses selected screen if not specified) | |
| autoFix | No | When true, automatically apply suggested fixes and return appliedFixes showing what changed |