Using Scriptable to filter iCloud files by tag?

I’m so frustrated with the chaotic lack of ordering of tags in the iCloud Document Picker. Is there a way of using Scriptable’s DocumentPicker action and filtering by an entered/selected tag? I’d like to be prompted in input the name of tag and then be presented with a list of files in iCloud with that tag – which I can then “Open in…”