connect
Links a Gmail mailbox by returning Google's consent URL for browser approval, and restores expired tokens; whichever account consents becomes the mailbox.
Instructions
Connect a Gmail mailbox (or reconnect one whose token expired). Opens Google's consent page in a browser and returns its URL at once; the person consents there, then list_mailboxes shows the result. The mailbox is whichever account they consent with.
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": "connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| login_hint | No | Optional address to preselect on the consent page |