Capture Web Screenshot
capture_web_screenshotCapture the current visible viewport of a configured browser page as an inline, content-addressed PNG artifact without scrolling, navigating, or running page JavaScript.
Instructions
Capture the current visible viewport of one configured page as an inline, content-addressed PNG artifact. The operation never scrolls, navigates, or evaluates page JavaScript.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_id": "TARGET_ID_FROM_LIST_BROWSER_TARGETS",
"cdp_endpoint": "http://127.0.0.1:9222"
},
"name": "capture_web_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Exact CDP target identifier selected from the endpoint's target listing. | |
| cdp_endpoint | Yes | Literal loopback Chrome DevTools Protocol endpoint. | |
| allowed_origins | No |