The javadoc tool is part of the Java Development Kit (JDK) and is used to generate API documentation in HTML format directly from Java source code.