The Website viewtool is a helper tool that helps to retrieve path elements — hosts, folders, or subfolders — for a site.
The following example shows how the WebsiteWebAPI is mapped in the toolbox.xml file:
<tool>
<key>website</key>
<scope>request</scope>
<class>com.dotcms.rendering.velocity.viewtools.WebsiteWebAPI</class>
</tool>