Log in to agy (Google auth)
agy_loginAuthenticates with agy via Google OAuth, opening a terminal if required. Returns login status, email, and whether already logged in.
Instructions
Ensure agy is logged in. If already authenticated, returns immediately.
Otherwise opens a terminal window running agy so you can complete Google sign-in in your browser (agy drives the OAuth flow itself), then polls agy's account store until a valid account appears and reports the signed-in email.
Args:
timeout_ms (number, default 180000): how long to wait for login to complete (10000..600000).
Returns JSON: { "logged_in": boolean, "email": string | null, "already": boolean, "message": string }.
already=true means agy was already logged in (no terminal opened).
logged_in=false with a message means the wait timed out (finish login and call agy_auth_status).
macOS only (opens Terminal.app). On other platforms, run agy yourself to log in, then use agy_auth_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_ms | No | How long to wait for login to complete before giving up, in ms (default 180000 = 3m). |