-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Description
Add a tool that analyzes the UI hierarchy and reports potential issues before they become visible bugs.
Proposed Tool
validate_ui
- path: string (optional, defaults to all ScreenGuis)
Returns:
- overlapping_elements: pairs of elements that visually overlap
- offscreen_elements: elements partially or fully outside viewport
- pixel_positioning_warnings: elements using Offset without Scale
- missing_constraints: containers without UISizeConstraint
- anchor_mismatch: elements where AnchorPoint doesn't match Position
Use Case
Catch layout bugs programmatically instead of requiring visual inspection. Especially useful for mobile where Claude cannot see the Device Emulator.
Context
When building responsive UI, common mistakes include:
- Using pixel positioning (
UDim2.new(0, 100, 0, 50)) instead of scale - Forgetting
UISizeConstraintcausing elements to grow/shrink unexpectedly - Mismatched
AnchorPointandPositioncausing elements to appear in wrong locations - Elements that work on desktop but overflow on mobile screens
A validation tool would catch these issues without requiring manual visual inspection.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels