Imagine porting this to a dedicated app that can access the context of the open window and the text on the screen, providing an almost real-time assistant for everything you do on screen.
https://developer.apple.com/library/archive/samplecode/UIEle...