I have been using LLMs to play a video game. YMMV, but the best way for AI to push a button - analyze the binary program to where the button is pushed and modify it to send the event.
Besides perhaps with video games, I would think the need to burn tokens having an LLM "see" the screen would mean that the application was not well architected.
The takeaway (exposing the a11y tree and allowing clicks by ID improves consistency) is the same path I went through while ideating and iterating on https://github.com/fixed-width/glass
Vision models are pretty good at vision tasks. I've had a lot of success just having the model output a new image with a mask over the button it wants pressed and using normal CV algorithms to convert the delta into coordinates. I'm surprised to not see simple, effective solutions like that from a company which supposedly specializes in this sort of thing.
4 comments