this Game Link thing is interesting:
It's a local IPC protocol to let you write a 3rd party program that interacts with an emulator, getting RAM contents and even capturing video/sending input.
It seems to have been developed for Grid Cartographer, a closed source program, but it's implemented in DOSBox-X:
https://github.com/joncampbell123/dosbox-x/tree/master/src/gamelink