page_hcaptcha
Identify and click hCaptcha challenge elements using a vision model, retrying until the page receives a valid response token.
Instructions
HCAPTCHA SOLVER: solve hCaptcha image challenges from the live page with the host vision model (Cloudflare Workers AI GLM). Handles ALL challenge variants — tile grids, pattern-break icon fields, any image-pick — by asking the model for the exact pixel coordinates of every element to click, then clicking with the humanized mouse. Multi-round: loops until the page's h-captcha-response field receives a token (up to max_rounds, default 4). Credentials come from CLOUDFLARE_API_KEY / CLOUDFLARE_ACCOUNT_ID env or the params. Returns JSON {success, rounds, response_len}.
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": {
"session_id": "<session_id>",
"page_id": "<page_id>"
},
"name": "page_hcaptcha"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| cf_api_key | No | Cloudflare API key for the host vision model (defaults to CLOUDFLARE_API_KEY env). | |
| max_rounds | No | Max challenge rounds (hCaptcha chains 2-4). Default 4. | |
| session_id | Yes | ||
| checkbox_ref | No | Optional ref of the hCaptcha anchor iframe / checkbox. If omitted the tool auto-locates the anchor iframe by src pattern. | |
| cf_account_id | No | Cloudflare account id (defaults to CLOUDFLARE_ACCOUNT_ID env). |