chrome_screenshot
Capture a Chrome tab screenshot via CDP and save it to disk without activating background tabs. Target tabs by URL or title, choose PNG/JPEG, full-page capture, and set quality.
Instructions
Capture a screenshot of a Chrome tab via CDP and save it to disk without activating background tabs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chrome_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Output path. Defaults to .pi/chrome-screenshots/<timestamp>.<format>. | |
| format | No | ||
| quality | No | JPEG quality 0-100. | |
| fullPage | No | Capture full-page tiles plus a JSON manifest. | |
| targetId | No | Chrome tab id to target. | |
| background | No | If true, avoid explicit Chrome focus/tab activation (default). Pass false to allow foreground work. | |
| urlIncludes | No | Match the target tab by URL substring. | |
| titleIncludes | No | Match the target tab by title substring. |