login
Authenticate to Exchange OWA using credentials and two-factor authentication. The first call launches browser-based login and requests 2FA approval; the second call finalizes authentication after user approves.
Instructions
Authenticate to Exchange OWA (handles credential setup and 2FA login).
Call this tool when the session has expired or before first use. It performs browser-based SSO login with 2FA mobile push approval. Session cookies are encrypted at rest with the master password.
Two-call 2FA flow: The first call starts the browser login in the background and returns immediately asking you to tell the user to approve 2FA on their phone. Call login again with the same master_password after the user approves — the second call picks up the result.
Args:
master_password: Decrypts stored credentials (and cookies), or encrypts
new ones if username/password are also provided.
username: Email address. Provide together with password for first-time
credential setup (replaces login.py --setup).
password: Account password. Required together with username for setup.
Returns: JSON result with success status and any error details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| master_password | Yes | ||
| username | No | ||
| password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |