add_account
Start connecting a Gmail, Outlook, or IMAP email account and return the verification steps plus handle needed to finalize authorization.
Instructions
Start adding an email account. For Outlook this returns a device code the user must enter at the verification URL; then call complete_add_account with the returned handle to finalize. For Gmail, share the authorization link AND explicitly ask the user to paste the full final redirected URL from the browser address bar after consent, even if the callback page fails to load. Do not just ask them to say when they are done. Pass that URL as authorizationResponse to complete_add_account with provider 'gmail' and the returned handle. Follow the returned verification.message instructions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>"
},
"name": "add_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Optional hint — the provider will verify it against the auth result. | ||
| config | No | Provider-specific config (e.g. IMAP host/port). Unused for Outlook. | |
| provider | Yes | Email backend. 'outlook' (Microsoft Graph) and 'imap' are fully implemented. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | No | ||
| status | Yes | ||
| account | No | ||
| verification | No |