ok, have your outside source write a plain text file of coordinates, (or what ever else).
open/read that file into your plugin, process your lines into G-code, push that into
a cstring block. Push that block into the Gcode editor via mach3 calls, then run the code.....
