Install
openclaw skills install captcha-login-assistantAssist with web login processes that require CAPTCHA verification. Uses Chrome DevTools MCP to capture screenshots, recognizes CAPTCHA codes using AI vision,...
openclaw skills install captcha-login-assistantThis skill automates the login process for web systems requiring CAPTCHA verification. It uses Chrome DevTools MCP to capture login page screenshots, employs AI vision to recognize CAPTCHA codes, automatically fills in account credentials and CAPTCHA, and completes the login operation.
Ensure the following tools are available:
// Navigate to login page and refresh
mcp_chrome-devtools-mcp_navigate_page({
"type": "reload"
})
// Capture current page viewport
mcp_chrome-devtools-mcp_take_screenshot({
"filePath": "path/to/login_screenshot.png"
})
// Use JavaScript to fill all fields simultaneously
mcp_chrome-devtools-mcp_evaluate_script({
"function": "() => {\n const username = document.querySelector('input[name=\"username\"]');\n const password = document.querySelector('input[name=\"password\"]');\n const verifyCode = document.querySelector('input[name=\"verifyCode\"]');\n \n if (username) {\n username.value = 'your_username';\n username.dispatchEvent(new Event('input', { bubbles: true }));\n }\n if (password) {\n password.value = 'your_password';\n password.dispatchEvent(new Event('input', { bubbles: true }));\n }\n if (verifyCode) {\n verifyCode.value = 'recognized_captcha';\n verifyCode.dispatchEvent(new Event('input', { bubbles: true }));\n }\n return 'filled';\n }"
})
// Click login button
mcp_chrome-devtools-mcp_evaluate_script({
"function": "() => {\n const loginBtn = document.querySelector('button[type=\"submit\"]') || document.querySelector('button');\n if (loginBtn) {\n loginBtn.click();\n return 'login_clicked';\n }\n return 'button_not_found';\n }"
})
// Wait for post-login page elements
mcp_chrome-devtools-mcp_wait_for({
"text": ["Home", "Dashboard", "System", "Logout"],
"timeout": 5000
})
User: Help me login to this system http://example.com/login, username admin, password 123456
Execution Steps:
1. Navigate to login page
2. Capture screenshot to get CAPTCHA
3. Recognize CAPTCHA as "Ab3d"
4. Use JavaScript to fill username, password, and CAPTCHA
5. Click login button
6. Verify successful login
If login fails showing "CAPTCHA verification failed":
1. Immediately recapture screenshot
2. Recognize new CAPTCHA
3. Refill and submit
4. Retry multiple times if necessary
| Issue | Possible Cause | Solution |
|---|---|---|
| Empty CAPTCHA recognition | Screenshot doesn't include CAPTCHA | Adjust screenshot bounds |
| Login button not found | Page not fully loaded | Wait for page load before operation |
| Repeated verification failures | CAPTCHA expires too quickly | Manual login or contact administrator |
| Redirect to login after login | Session issue | Clear cookies and retry |