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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "screenshot"
}
}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) |