Apple iCloud integration guide
Reads Photos and Messages databases on your Mac.
Read iCloud-synced databases directly on your Mac to find the largest files in your Photos library or search your own downloaded Messages history.
Actions and inputs
photos topList the 25 largest files in your local Photos library.
messages searchSearch the text of messages in your own downloaded history.
Inputs Search text