X-Ray
See a window's accessibility tree laid over its screenshot, inspect any element, and find missing labels, low contrast and small targets.
X-Ray captures a window together with its accessibility tree: every button, label and text field the app exposes, with its role, title and frame.
Run it#
- Choose Tools ▸ X-Ray Window.
- Click the window.
The first time, Glimmer asks for the Accessibility permission. Until you allow it, X-Ray shows rectangles it detected in the image instead of a real tree.
The capture is saved to the Library like any window capture.
The X-Ray window#
- The screenshot, with a box around each element: interactive elements, text, and elements with issues are colored differently.
- Elements: the tree. Click an element in the list or in the image to see its role, title, label, identifier, frame, value, actions and font.
- Filters: Controls (interactive elements only), Issues (only elements with problems), Labels (show names on the image).
- Copy JSON copies the tree. Copy outline copies a compact text outline. Export… saves it.
Values (what’s typed in fields) are never read; the tree records that a value exists, not what it is.
The audit#
X-Ray checks each element against the image:
| Issue | Rule |
|---|---|
| Missing label | A control or image with no accessible name |
| Low contrast | Text below 4.5:1 (3:1 for large text), measured from the pixels |
| Small target | A control smaller than 24 pt |
Apps with sparse trees#
Some apps (Electron, Chromium, Qt, Java, Flutter) expose little or no tree. X-Ray says so and falls back to rectangles detected in the image.
From the command line#
glimmer ax prints a window’s tree as JSON, and the MCP server’s accessibility_tree tool gives it to coding agents. See Command reference.
Next#
Something missing or unclear? Write to [email protected].