Run JS in backend workflow - Toolbox Server Script Config Help

Hello,
I’m trying to create a workflow to run a JS command to retrieve my browser’s URL via API to be called somewhere other than my website, but I’m not managing to configure the Toolbox Plugin’s Server Script, could you help me with that?
The command I’m trying to run in the API call is: var currentUrl = window.location.href;

Hi, do you still need help with this?

Server script is a Node.js AWS Lamda instance, it won’t see your browser’s window.

You can use an Expression, or a combination of RunjS + JStoBubble.

Thanks for reply!
Could you help me to build this logic?

Check out this example in Toolbox docs, your logic is similar but simpler.