cloak_screenshot
Capture annotated screenshots with numbered element overlays to provide visual context for images, charts, CAPTCHAs, or page layouts during browser automation.
Instructions
Take an annotated screenshot with element indices overlaid.
Each numbered element maps to [@eN] refs from cloak_snapshot. Use when you need VISUAL context — images, charts, CAPTCHAs, or layout. For most interactions, prefer cloak_snapshot() instead.
Returns: file path to saved PNG, element count.
Args: page_id: Target page ID. full_page: Capture entire scrollable page (default: viewport only).
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": {
"page_id": "<page_id>"
},
"name": "cloak_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| full_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||