How to add data in current tags manually

Hi Kore team,

I am trying intent pre-conditions for one of my use case, I want to add the data manually in current tags , which coming from service node.

I tried this
tags.addSessionLevelTag(“path”, context.path)
But I am not able to see that value in currentTags in the context.

How can we achieve this?
Can we add data manually into currentTags based on service call data?

We have similar requirement to add different tags in currentTag conditionally and use as precondition for dialog tasks. Any suggestions?