This is a great idea! I don’t think we have anything that’s wired up to do this right now, though there is an experimental Local CLI tool that might get you part of the way.
See this feature request for more details as well as a place to share your use case and up-vote!