Screenshot with numbered click targets
screenshot_markedCaptures a PNG viewport screenshot with numbered interactive targets and a ref/role/name/rect map, enabling agents to click mapped elements accurately without page overlays.
Instructions
Return a PNG viewport screenshot with numbered main-frame interactive targets plus number-to-ref/role/name/rect mapping in CSS pixels. Click a mapped ref with computer. Reports excluded child frames; their controls are not mislabeled with main-frame coordinates. Rejects document/viewport/layout drift during capture. Uses CDP/canvas, leaves no page overlays and does not activate tabs.
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": {
"tabId": "<tabId>"
},
"name": "screenshot_marked"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| maxTargets | No |