auth_browser_login
Logs into websites using a real browser, captures the authenticated session (cookies, localStorage, sessionStorage) into a named profile for reuse. Supports SSO, MFA, and OAuth redirects.
Instructions
Log in with a real browser and save the session (cookies, localStorage and
sessionStorage) into profile name. Works for any login incl. SSO/MFA/OAuth redirects.
headed=true opens a visible window where the user logs in (or finishes MFA); if
username/password are given (use "env:VAR" for secrets) the form is filled first.
Completion is detected by success_url_pattern (regex on the URL), success_selector,
or — if neither is given — by leaving the login page's URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| headed | No | ||
| password | No | ||
| username | No | ||
| login_url | Yes | ||
| timeout_s | No | ||
| submit_selector | No | button[type=submit], input[type=submit] | |
| success_selector | No | ||
| password_selector | No | input[type=password] | |
| username_selector | No | input[type=email], input[name=username], input[name=email], input[autocomplete=username], input[type=text] | |
| success_url_pattern | No |