The tool library documentation is automatically generated from library and tool metadata using the SAGA python API. The code is available here.