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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tv_ui_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||