account_login
Open a login page under a named account, identify the login gate (password, SMS, QR, slider), and hand off live if human action is needed. After an automatic bounce, stamp the account's verify spec.
Instructions
Open a site's login page AS a named account and close the login loop. Creates the session as the account (private jar, device persona), navigates to url, and reports which generic login gates the page shows — needs: password | sms | qr | slider (QR scan like xiaohongshu, SMS code, password form, slider/captcha) — plus a session_verdict classification and, when a human step is needed, the session_id and a /live handoff so a person can finish it in the live view (the engine detects and describes; it never fills credentials or solves challenges). With predicate and no human gates detected, waits for the automatic bounce, then teaches + stamps the account's verify spec — later account_verify calls re-check it bare. Cookies write back after every action, so a login finished in /live is already persisted. status is "logged_in" (verify stamped), "waiting" (drive session_wait/session_input on session_id, or re-call account_login after the human finishes — the account's shared jar already holds it), or "opened" (no predicate given).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The login page URL to open as this account. | |
| name | Yes | The account to log in as (created implicitly on first use; 1-64 chars of [a-zA-Z0-9_-]). | |
| predicate | No | A JS expression truthy on the page the site lands on AFTER login, e.g. `!!document.querySelector('.user-nick')`. With it and no human step detected, the call waits for the automatic login bounce and stamps the account's verify spec on success. Without it, the call just opens the page and reports what kind of login it sees. | |
| use_proxy | No | Route through the engine proxy. Seeds a fresh account; an account with an existing record reuses its recorded egress. | |
| timeout_ms | No | Wait budget in ms for the automatic-login bounce (default 60000, clamped 1000..120000). Never spent while a human step (QR/SMS/password/slider) is outstanding — those return immediately with a session handoff. |