Thank you for your answer.
It surprised me since the only doc I found about it (What’s new in App Intents session from WWDC24) clearly mentions using UnionValue for a Parameter (15:16 in the video).
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: