playwright-spatial-layout-mcp
JSON →Geometric vision for AI agents: bounding boxes, occlusion, viewport reflow
Install
npx playwright-spatial-layout-mcp Tools · 4
- extract_bounding_boxes Returns position, size, z-index, and viewport visibility for one or more elements.
- detect_visual_occlusion Checks if one element physically overlaps another by computing bounding box intersection.
- verify_spatial_relationships Validates a set of layout rules and returns pass/fail with a human-readable reason per rule.
- compute_viewport_reflow Measures how element positions and sizes change across multiple viewport sizes.