You can do that more easily with the avogadro PyPI package, which includes avogadro.connect for JSON-RPC: avogadro/connect.py
I’ve posted a few times asking for suggestions on RPC features for automation, e.g. Tasks for Automation
Suggestions are definitely welcome on new capabilities.
As far as AI, I’d welcome ways to make that more obvious, e.g. a list of commands. I know the new MCP mechanism is basically JSON-RPC, but haven’t had time to look into ways to expose the existing local RPC mechanism to scripting or automation.
If that’s something that interests you, let’s open a new thread.