Sending text to Clay MacOS app for search

Hi
I am using Clay as CRM and unfortunately it doesn’t provide an API for search.

Curious, if anyone here has a hack to use AppleScripts to send text from Popclip to a native MacOS app like Clay by pasting it in the search box of the app and pressing enter?

If you look at the AppleScript for the Music extension, it might give you some ideas.