tv_launch
Enable remote debugging on TradingView Desktop for automation. Auto-detects installation across Mac, Windows, and Linux; if Windows Store blocks the port, relaunches from a local copy.
Instructions
Launch TradingView Desktop with Chrome DevTools Protocol (remote debugging) enabled. Auto-detects install location on Mac, Windows, and Linux, including Windows MSIX/Store installs. If a Store install blocks the debug port, automatically relaunches from a local package copy (result then includes msix_local_copy: true; the first fallback launch copies ~330MB one time, so it can take a minute).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | CDP port (default 9222) | |
| kill_existing | No | Kill existing TradingView instances first (default true) |