How to pass value of an event to a script called from an automation?

I have

In an automation, I can do customize my msg being sent and it works great:

however, if my automation calls a generic script that I use to notify the home assistant iOS app, I’d like to use the value (car or person) derived from the triggering event (deepstack.object_detected) in place of the word “Object” in a message
image

everything I try gives no data or errors… any insight? set a Variable perhaps?