tv_ui_state
Check the current TradingView UI state to detect open panels, dialogs, active tabs, and enabled controls before interacting with elements like Pine Editor or Strategy Tester.
Instructions
Get real-time UI state of TradingView window: detects open/closed bottom panels, visible dialogs, active tabs, and enabled control buttons. WHEN TO USE: Call before interacting with UI panels (Pine Editor, Strategy Tester) to ensure target DOM elements are present. SIDE EFFECTS: None (Read-only). LIMITATIONS: Assumes standard desktop window hierarchy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||