/** * Weavetab — tools/captcha.ts * Dedicated browser_captcha tool for autonomous CAPTCHA detection and solving. * * Actions: * detect → Identify CAPTCHA type, interaction method, and confidence * solve → Attempt full autonomous solve (slider drag, hold, checkbox, invisible) * wait_for_user → Show HUD prompt and poll until CAPTCHA is gone (120s timeout) * status → Quick check: is a CAPTCHA currently blocking? * * Zero API keys. All solving via CDP mouse simulation. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; export interface CaptchaToolResult { success: boolean; action: string; captcha_detected: boolean; captcha_type?: string; interaction_type?: string; difficulty?: string; confidence?: number; /** True only when human input is truly required after all automated attempts */ human_needed: boolean; solved?: boolean; solve_method?: string; message: string; /** Specific instructions for the user when human_needed is true */ user_instructions?: string; /** What the agent should do next */ next_action?: string; execution_ms: number; } export declare function browserCaptcha(session: CDP.Client, args: { action: "detect" | "solve" | "wait_for_user" | "status"; timeout?: number; }, _config: Config): Promise;