browser_screenshot
Capture viewport, full-page, or specific element screenshots as PNG from an attached Chrome or Edge tab, including CSS mapping for image-to-viewport coordinates.
Instructions
Capture viewport, full_page or one ref/selector element as PNG with image-to-viewport CSS mapping. Element/full_page are exclusive; locator options need selector. Full-page points may need scrolling before input. If background rendering stalls, explicitly activate or use AX/text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Selector only: zero-based DOM index, AX tree order for role. | |
| ref | No | ||
| name | No | role only: exact AX name; empty allowed. | |
| frame | No | Child frame: at least one of url/title/path. url/title exact; path=unique nested CSS iframe steps (e.g. ["#frame"]); exclusive with frame_id. | |
| frame_id | No | Selector frame; default main. | |
| selector | No | Query by selector_type; role example: selector="link", name="Claim". | |
| full_page | No | ||
| tab_handle | Yes | ||
| selector_type | No | Default css. label: exact associated HTML label, whitespace normalized. placeholder: exact attribute. | |
| include_indicators | No | Include transient click feedback. |