Many people seem to be struggling with this or asking about how could someone control which tab of a container is visible via incoming midi or OSC messages. The logic is quite simple - by creating pads, buttons or any other objects with scripts to select a container's tab, you can then send your "messages" to those controls which in turn will control the tab.
For learning purposes, here's an example template with menu, pads, and switch objects controlling the tabs of containers. The menu and switches objects also have the advantage that you can see which tab is currently visible