This functionality is only available for certain module packages.

getImportedLibraryNames

Delivers a list of strings with the names of the directly imported libraries.

getImportedLibraryNames
Argument String projectName Name of the project
Return value List List with the names of the imported libraries