This is a neat idea I think you can improve and even help with if you’d like. I’m sure you know that you can copy and paste elements via right click in bubble and even across applications.
The element information JSON is actually saved to the device clipboard. I’m wondering if it would be possible to study the structure of this JSON and have your LLM model use it. Instead of generating HTML it could generate JSON that you can paste into your app.
Maybe worth an investigation?