Viewing the results
In MarvinSketch the result is recognized automatically: if a Molecule or MDocument is returned, it is rendered.
All other typed are displayed in a HTML view.
Please note that returning partial HTML documents can provide nice looking results - with images as well.