Command Console III is a panel inside InDesign where you type code and see the result at once, in ExtendScript or UXP. A second tab, the Inspector, documents the scripting objects of the InDesign you are running.
The beta is free and needs InDesign 2025 or later on Windows or Mac. Mac testers are especially welcome: nothing has been tried on a Mac yet.