In this case, please show me how you use that in your test script. And also please post ‘compile error’ message as well. From my side, I think using that approach will not work from Katalon Studio.
As I can see, the current scripting mode of Katalon Studio doesn’t support that. You can only define new custom keywords from Custom Keywords editor, and you can’t call keyword annotation like that to be used in your test script. Please define your new custom keyword using the proper declaration of Katalon Studio. https://docs.katalon.com/display/KD/Define+custom+keywords