Can Google AI Studio create files locally after generating needed code?
AI with API code can call functions. Text can be sent to the fields of functions. The code that powers a function can take real world action.
You just need to connect them together to finish the idea.