In my experience, any major coding harness will just do this automatically. I have CC debug my IMGUI app all the time.
A lot of testing has shown me that agents fumble often, use a lot of unnecessary tokens, and may or may not be able to do all of it headlessly. I agree with you that harnesses in general can do this at some baseline level.
Usually. They're all capable of running Win UIA and pywinauto or something like that, but they sometimes default to just manually pushing the mouse around and OCRing screenshots.