The Scripter plug-in exposes a set of JavaScript functions that you can implement in your script to communicate with MainStage 3. See the linked sections for details about different JavaScript function types and how to use them to create MIDI plug-ins: