How can I transfer parameters between steps

I want to transfer parameters between steps like this.
Step1: I get the keyword.

let [st, len] = editor.getSelectedLineRange();
keyword = editor.getTextInRange(st, len);

Step2: I want search it in google by URL.
https://www.google.co.jp/search?q=keyword

but I don’t know how to realize this…

Javascript variables will carry over from one Script step to another.

If the step you want to use it in isn’t a Script step, then you should store the value in a template tag, which you can then use in your later step.

So, something like this:

draft.setTemplateTag(‘keyword’, editor.getSelectedText())

and then in your URL, use [[keyword]] to pull in that value:

https://www.google.co.jp/search?q=[[keyword]]

Thank you very much .
It really worked.:blush: