Get an OAuth connect URL for a mailbox
get_email_connect_urlGet the consent URL to connect a Google/Microsoft mailbox to a profile. Returns a link for the user to open; consent cannot be completed here, and nothing is stored until the user approves it in the browser. Use connect_imap_account for non-OAuth mailboxes. Fails with 400 for an unknown provider. Returns { url }.
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>",
"profileId": "<profileId>"
},
"name": "get_email_connect_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Mail provider: google or microsoft (case-insensitive). | |
| profileId | Yes | The profile the mailbox will be attached to (UUID from list_profiles). |