solve_on_page
Detect, solve, and autofill all CAPTCHAs on any page URL using the CapSolver API.
Instructions
Detect, solve, and optionally autofill all captchas on a page.
One-shot operation: opens the page in a headless browser, detects captcha widgets, solves them via the CapSolver API, and injects the solution tokens back into the page DOM.
Requires playwright to be installed.
Args: page_url: The full URL of the page containing captchas. autofill: If True, inject solved tokens into the page (default: True). timeout: Maximum seconds to wait per captcha (default: 120). polling_interval: Seconds between status polls (default: 5).
Returns: {"success": True, "url": "...", "results": [{"captcha_type": "...", "solved": true, "token": "...", "filled": true}, ...]} {"success": False, "error": "..."} on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| autofill | No | ||
| page_url | Yes | ||
| polling_interval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||