browser_element_screenshot
Capture a screenshot of a specific webpage element by CSS selector, automatically scrolling it into view and saving a cropped PNG file.
Instructions
Screenshot a single element. Scrolls into view, captures, crops in the extension via OffscreenCanvas. Saves a PNG and returns its path (saved_to).
Args: selector: CSS selector of the element tab_id: Optional tab to target. Defaults to active tab. save_to: Optional file path (default: ~/claude-zen-screenshots/element_.png) data_url: Also return the PNG data URL (large - only if you really need the bytes inline) scale: 1-4 output pixels per CSS pixel. 2 = genuinely sharper capture at twice the size (needs extension 2.1.1+; older extensions ignore it)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| tab_id | No | ||
| save_to | No | ||
| data_url | No | ||
| selector | Yes |