This workflow allows you to quickly find and copy iCloud passwords and OTPs to your clipboard.
It offers three keywords:
p <query>
– Open Preferences and search for the queryfp <query>
– Open Preferences, copy the first result's password, and quitotp <query>
– Open Preferences, copy the first result's OTP, and quit
After a password or OTP has been copied, you'll get a notification about it.
The workflow makes use of AppleScript's accessibility controls, so you might have to give it permission to access them the first time you use it.