Hello i think that by combining this Trigger a module query from the parent app, you can set the input in your module where you pass the selected tab as a variable, then in the on Success run your queries and set a "only run when" when input.value === "tab1"
When selecting a tab, set the variable
btw you can open another app in a new tab