There isn’t, and I just explained why.
There is, however, a difference between smart rule scripts and other scripts:
the latter can be run from inside and outside of DT, and they can ask DT for any kind of data it is prepared to talk about (aka “classes and methods specified in the scripting dictionary”).
But in your case, we’re talking about a function (“handler” in AppleScript parlance) running within DT that receives an Array
(a “list” in AppleScript parlance) of records as parameter. This data belongs to DT, and you can’t transfer it out of DT from within the function. Or rather: The only way to do that would be serialization (for example, by passing the UUIDs as strings). But then the receiving program would have to repeat the work done by DT, namely retrieving all the records again from DT. Completely unnecessary.