The interface wrapper is a shim provided by a scripting plug-in for the javascript operation (or transformation). It serves as a bridge between the script and the application, giving the script access to the currently edited document.
Individual interface wrappers can be accessed via the Document object by typing the wrapper name after a dot. For example: