browser_screenshot
Capture visual snapshots of an agent-owned tab for canvas, charts, images, or layout that observations can't describe, and compare changes against prior or another tab.
Instructions
Take a picture of an agent-owned tab. This is a last resort, not a way to find or operate controls: browser_observe returns the refs browser_act needs, and a picture returns none. Use it only for what an observation cannot describe (canvas, charts, images, visual layout). Password and payment fields are masked. The result states the viewport size at capture; a person may resize the live window, so trust it over sizes you saw earlier. state captures a ref's :hover/:focus styling; compare_with diffs against an earlier picture or another tab and boxes what changed. To check a page you are building against an original, open both and take one with compare_with='tab:': one picture of both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | scope=element or state: a ref from the latest browser_observe of this tab. | |
| label | No | Short caption naming the picture, e.g. 'Application form before submit'; used in the evidence file name. | |
| scope | No | viewport (default) is what is on screen now; full_page is the scrollable document, cut at 8000 px; element is one ref. | |
| state | No | ||
| tab_id | Yes | The agent-owned tab to capture. | |
| compare_with | No | 'previous' (this tab's last picture), 'tab:<tab_id>' (another tab, e.g. the original site beside your build; pages of different heights come back side by side), or an evidence path; same scope and size. |