The Categories Viewtool provides methods to pull category information and related categories.
The following example shows how the CategoriesWebAPI Viewtool is mapped in the toolbox-xml file:
<tool>
<key>categories</key>
<scope>request</scope>
<class>com.dotcms.rendering.velocity.viewtools.CategoriesWebAPI</class>
</tool>