Alfred search inside KM group

I would like to modify the following script (from the Alfred Maestro plugin for Alfred) so that instead of returning all macros, it returns only the macros that are inside UUID 523CE548-9419-43C8-9788-533BDFF26C8C

try
	get application id "com.stairways.keyboardmaestro.engine"
on error err_msg number err_num
	return "Keyboard Maestro not found. You should install it first."
end try

tell application id "com.stairways.keyboardmaestro.engine"
	gethotkeys with asstring and getall
end tell

Can anyone tell me how to do this, please?

There is no easy way to do that. The returned value from that is XML of the macros, so you'd need to process the XML to limit the results.

thank you, Peter