screenshot
Capture a PNG or JPEG of a page target, optionally clipping to a CSS selector's element bounds for focused visual debugging.
Instructions
Capture a PNG/JPEG screenshot of a page target via Page.captureScreenshot (optional CSS selector clips to element bounds)
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": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| quality | No | ||
| selector | No | Optional CSS selector — capture only that element's bounding box | |
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. |