The JavaScript API provides a rich set of scriptable Java objects.
Many root-scope objects are provided by default, such as access to the user home folder, company home folder, search, People API, and logging functionality. You can also configure additional root-scope objects for use with your own scripts.