I've wondered about interfacing with electrum programmatically (this may be a fork). The JSON-rpc stuff seems mainly read only commands.
Looking at the command-line https://electrum.readthedocs.io/en/latest/cmdline.html looks like there could be some inroads but inserting the password in is the hardest thing to program.
here's what I'm doing so far :
$ electrum daemon start
$ electrum -w ~/.electrum/wallets/mmt_multi6 daemon load_wallet
// Password:
$ electrum -w ~/.electrum/wallets/mmt_multi6 daemon history
$ electrum daemon stop
could make some tools with easier interfaces for users with somethink like commander.