Log in to BRAIN
authenticateLog in with configured credentials and reuse a saved session to start or restart a biometric check when required.
Instructions
Log in with the configured credentials, reusing a saved session when it is still valid.
Tools log in on their own, so this is only needed to start or restart a biometric check. When
state is biometric_required, have the user open biometric_url, then call
complete_authentication.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "authenticate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Discard the saved session and log in again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| user_id | No | ||
| next_step | No | ||
| biometric_url | No | ||
| expires_in_seconds | No | ||
| credentials_configured | No |