MACRO Example: Swift Script returning list of variable names from KME

Try his Get List of KM Variables and Size @KM @Tool