capture_screenshot
Capture the current TradingView chart view as a PNG to verify visuals. Supports full-page, active pane, or strategy tester capture, with wait-for-render and hidden-tab handling.
Instructions
Take a screenshot of the TradingView chart. REFUSES on a hidden tab, because a hidden tab returns the last frame it painted - a real PNG of the right chart showing stale data. region:"chart" captures the ACTIVE pane and reports which selector found it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Capture method: cdp (Page.captureScreenshot) or api (chartWidgetCollection.takeScreenshot) (default cdp) | |
| region | No | Region to capture: full, chart, strategy_tester (default full). "chart" targets the focused pane. | |
| filename | No | Custom filename (without extension) | |
| allow_hidden | No | Capture even when the tab is hidden. The image may be a stale frame: only pass this if you have accepted that. | |
| wait_for_render | No | Wait for the chart canvas to stabilize before capture |