browser_screenshot
Capture a tab, full page, or cropped element as a PNG and return its file path instead of bulky base64, so agents can inspect web content without large payloads.
Instructions
Screenshot of the tab, of the whole page (full_page=True), or of one element cropped to the pixel (PNG), even if the page has scrolled.
By default, the image is written to ~/.nexus/nexus-browser/screenshots/ and only its path is returned (output_path): no bulky base64 in the response. Do not open a capture larger than 500 KB with an image reader. Targeting:
selector: CSS selector of the element to crop (e.g. "#dashboard-card")
mark: mark number to crop (e.g. mark=4)
output_path: absolute PNG path (optional, otherwise the local cache)
full_page=True: the whole scrollable page, beyond the visible area (height capped at 16384 px; fullPage.truncated says so). Ignored when an element is targeted.
inline=True: attaches the image to the response (no file): WebP, long side at most 2000 px and 2.56 megapixels, at most 500 KB, so every model reads it as sent. data.image: width, height, scale and css_per_image_px, css_origin to turn a position on the image into page CSS pixels. Same target as the last image sent for this tab and nothing changed: no image again ("unchanged"), unless force=True.
region=[x1, y1, x2, y2]: zoom on that area, in pixels of the last whole-view image attached for this tab (browser_screenshot(inline=True) first): enlarged up to 4× within the same limits, to read small text without sending the whole view in large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mark | No | ||
| force | No | ||
| inline | No | ||
| region | No | ||
| tab_id | Yes | Your tab's id (from browser_new_tab, or a tab adopted with browser_adopt_tab). | |
| selector | No | ||
| full_page | No | ||
| output_path | No |