Hand the browser to the human to solve a challenge, then resume
await_human_interactionHand the live browser to a human for CAPTCHAs or Cloudflare checks that AI cannot automate, blocking until completion, cancellation, or timeout, then return status and current URL.
Instructions
Hand the live browser to the human for something the AI cannot or must not automate — a Cloudflare "Verify you are human" check, a CAPTCHA, an interstitial. It never solves the challenge and never bypasses anti-bot protection: it puts a window on screen, shows a localhost prompt with your reason and a Done button, and BLOCKS until the human clicks Done, the page reaches expectUrlContains, the human cancels, or timeoutMs elapses. Returns status (completed | cancelled | timeout) and the current url. The ONLY tool that shows a window: managed mode browses invisibly and is relaunched visibly here, so unsaved in-page state is lost. Headless mode returns a clear error instead of hanging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Plain-language instruction shown to the human, e.g. "Solve the Cloudflare check, then click Done." | |
| timeoutMs | No | How long to wait for the human, ms (default 180000, max 600000). On expiry returns status=timeout, never hangs. | |
| screenshot | No | Include a screenshot of the resulting page. Default off. | |
| expectUrlContains | No | Also auto-complete when the page reaches a URL containing this, so a challenge that redirects on success needs no click. |