tv_screenshot
Captures a PNG screenshot of the chart tab, optionally cropped to the chart container, to verify the current chart display.
Instructions
Capture a PNG screenshot of the chart tab and return it as an image. Read-only. Set clip_to_chart to crop to the chart container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | chart layout id, target id, or 0-based index; default = the chart tab that is actually painting | |
| clip_to_chart | No | crop to the chart container bounding box instead of the whole window | |
| expect_layout | No | layout id the tab is expected to show right now; the call refuses if it differs (a tab keeps its target id when the user opens another layout in it) |