ListAlbumsTool
Lists MediaStore buckets (album folders) for images and/or videos, aggregating item counts and using the newest item as the cover. The media_type param selects images (default), videos, or all; results sort by descending item count. Requires READ_MEDIA_IMAGES/READ_MEDIA_VIDEO on API 33+, else READ_EXTERNAL_STORAGE. Output: albums (each {bucket_id, album_name, cover_media_id, count}) capped at the limit param, plus count and media_type.