I use xcall for this.
You don’t have to use the text parameter in your action, so you can just pass in an empty string.
Since you are opting to use
runaction, it doesn’t need a UUID because actions run against the currently loaded draft.
You could use the text parameter to pass in a specific UUID, or have one specified in your action. Then have your action scripted to work on the draft specified by your uuid rather than the current draft instance,
It could certainly be easier with more automation options, but I don’t believe it is inaccessible - the example Alfred workflow linked to earlier is an example of this. I’m sure many others like myself also have some similar things on our Macs. Inn regards to it being a Mac thing; yes some tools are only available on the Mac (e.g. shell script, AppleScript, use of Marked2), and likewise, some things are only available on i`*OS (e.g. Shortcuts).
There are details of specific action steps that are limited or work differently on different platforms available and are worth being aware of if you use Drafts across platforms.
Ultimately do note that this request was posted in the ‘Drafts for Mac’ forum and explicitly references the Mac and Alfred (a Mac only app). I think that makes it relatively clear that the solution being sought is Mac specific rather than seeking something cross-platform.
I hope that clarifies things.