capture_screenshot
Capture lossless PNG screenshots of TradingView windows or regions and save them locally, returning the file path for chart, strategy tester, or UI verification.
Instructions
Capture lossless PNG screenshot of TradingView window and save locally to disk (regions: "full", "chart", "strategy_tester"). Returns local filesystem path to prevent token exhaustion from raw base64. WHEN TO USE: Call when visual verification of chart patterns, drawings, or UI layout is requested by the user. SIDE EFFECTS: EXTERNAL_SIDE_EFFECT (Writes PNG image file to local screenshots directory). LIMITATIONS: Requires TradingView window to be rendered on screen.
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) | |
| filename | No | Custom filename (without extension) |