I would like to have the possibility, as exists for the SQL Advanced Queries, to insert JS code dynamically into a JS logic.
So, the possibility would be to create something like:
Console.$parameter.ExpandInlineAction($parameter.Text)
With $parameter.ExpandInlineAction being 'log' or 'count' to be interpreted as part of the JS code, so we would have the 'Expand Inline' set to true.
And with $parameter.Text being a text like '' or 'show this on console log' as a text, with 'Expand Inline' set to false.