If you want to get the list of assets, just use the query in query
runner and get the results. if you want to package the assets out, you
can use
https://adobe-consulting-services.github.io/acs-aem-commons/features/packagers/query-packager/index.html
and use the query, which can get you a content package with the assets.