screenshot
Capture the active page as PNG, or specify a tab by URL/title to snapshot it without changing focus.
Instructions
Take a screenshot of a page. If 'tab' is specified, uses CDP to capture that specific tab without switching focus. Otherwise captures the currently focused tab via IPC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab to target by URL or title substring (e.g. 'github.com', 'outlook'). Uses CDP — requires --qt-arg remote-debugging-port 9222. Captures without changing focus. | |
| rect | No | Capture rectangle in format WxH+X+Y (e.g., 800x600+0+0). Only works without 'tab' parameter. | |
| filename | Yes | Output filename (PNG format) |