← Back to search
io.github.vola-trebla/playwright-spatial-layout-mcp
MCP server that gives AI agents geometric spatial awareness of web page layouts using Playwright
A
91.2 / 100
Versions
0.1.1latestfirst seen Jun 5, 2026
Tools 6
compute_viewport_reflow annotations: none low
Measures how element positions and sizes change across multiple viewport sizes.
url string width number height number
verify_stacking_context annotations: none low
Reveals the full CSS stacking context chain for an element — which ancestors create
url string selector string
calculate_perceptual_contrast annotations: none low
Measures color contrast between a text element and its background using both WCAG 2.x
url string text_selector string background_selector string
extract_bounding_boxes annotations: none low
Returns the geometric position, size, z-index, and viewport visibility for one or more DOM elements.
url string
detect_visual_occlusion annotations: none low
Checks if one element physically overlaps another by computing the intersection of their bounding boxes.
url string target_selector string
verify_spatial_relationships annotations: none low
Validates a set of spatial layout rules — e.g. 'nav must be above hero', 'sidebar must be left of content'.
url string element_a string element_b string
Permissions 0
No permissions indexed yet.
Scan Findings 19
medium
Vulnerable dependency: playwright@1.52.0 (GHSA-7mvr-c777-76hp)
low
Tool 'extract_bounding_boxes' has no annotations
low
Tool 'detect_visual_occlusion' has no annotations
low
Tool 'verify_spatial_relationships' has no annotations
low
Tool 'compute_viewport_reflow' has no annotations
low
Tool 'calculate_perceptual_contrast' has no annotations
low
Tool 'verify_stacking_context' has no annotations
info
Sandbox failed to start for behavioral verification
info
package.json metadata
info
Tool: extract_bounding_boxes
info
Tool: detect_visual_occlusion
info
Tool: verify_spatial_relationships
info
Tool: compute_viewport_reflow
info
Tool: calculate_perceptual_contrast
info
Tool: verify_stacking_context
info
Transport: stdio
info
Sandbox failed to start for output poisoning scan
info
SBOM generated: 332 components
medium
No build provenance detected (SLSA L0)