On the playground window.scene is set equal to the scene object returned from your scene creating function, so you can type scene in the console to log and inspect the object.
On a local typescript project you should be able to do something like below after creating your scene and then you can access it from anywhere including from the console. Not sure but I think that’s what you’re after? 
(window as any).scene = scene;