@Sulcalibur someone just did a pretty close thing to what you are talking about, new .gui file format just droped.
.gui is an open file format for user interfaces. Text you can read, a file you can send, a design that stays a design:whoever, or whatever, made it.
The idea is to have humanly readable file format, that can be used by different tools, AI agents and people. It’s tool agnostic. Could Penpot support this kind of a file type in the future?