hack project repurposing accessibility insights
This allows you to take screenshots with embedded accessibility metadata. The accessibility information comes from the UI Automation tree and is serialized into the resulting PNG file itself. An example photo viewer for these PNGs is here).