auth_check
Detect if a page is behind a sign-in wall by reading the URL, title, and login controls. Use it after navigation or failed steps to distinguish expired sessions from agent errors, with optional [AUTH_REQUIRED] error on detection.
Instructions
Is the tab sitting on a sign-in wall? Reads the page (URL, title, password fields, sign-in controls) and returns { authRequired, confidence, signals }. Use it after a navigate, or whenever a step fails unexpectedly, to tell "the session expired" apart from "the agent got lost". Pass failOnAuthWall:true to get an [AUTH_REQUIRED] error instead of a verdict, so a harness can bucket the run as an auth failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab id (default: active tab) | |
| frameId | No | Frame id from frames_list | |
| allFrames | No | Act on the first match in ANY frame (the element may be in an iframe) | |
| failOnAuthWall | No | Error with [AUTH_REQUIRED] if this lands on a sign-in wall (expired session) |