RunMacro1() example in my script do not works

Hello everyone,
this is my first kantu approach and I have a problem about include the example RunMacro1() edited with my JSON.

If I run the macro from Firefox extension every work fine, but if I put this function inside a js script the macro do not run.

this is my macro (clear all cookies in particular case)

{
  "Name": "Test",
  "CreationDate": "2021-3-31",
  "Commands": [
    {
      "Command": "deleteAllCookies",
      "Target": "",
      "Value": ""
    }
  ]
}

Thanks a lot for yours help
Stefano

What is the problem ?

I see all working.

You can not put macro code inside a javascript

You must use run command to load another macro inside one

Hello,
ok, if I can not put macro code inside a javascript I need to put them inside a <script>...</script> in the HTML page directly?

Thanks
Stefano

I think you want to use this

https://ui.vision/demo/runweb

Yes.
I putted the Macro in <script></script> and work fine.

Thanks
Stefano