Are you meaning dynamically based on the tag structure? If so, you’ll need to use a script transform on a binding on the instances prop to create the instances list using the result of a system.tag.browse (or query, although this is slightly slower to run)
Similar to this, although you probably won't need the tag read section. This shows how to create the instances list though.