There's a bit more detail on Script Editor vs KM JXA Action here:
https://forum.keyboardmaestro.com/t/using-script-editor-to-test-scripts-for-execute-jxa-actions
There's a bit more detail on Script Editor vs KM JXA Action here:
https://forum.keyboardmaestro.com/t/using-script-editor-to-test-scripts-for-execute-jxa-actions