register_oauth2_account
Stores OAuth2 client ID, secret, refresh token, and token endpoint for an IMAP account in the system keychain to set up secure authentication.
Instructions
Store OAuth2 credentials (client ID, secret, refresh token) for an IMAP account in the system keychain.
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": {
"accountId": "<accountId>",
"clientId": "<clientId>",
"clientSecret": "<clientSecret>",
"refreshToken": "<refreshToken>",
"tokenEndpoint": "<tokenEndpoint>"
},
"name": "register_oauth2_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientId | Yes | OAuth2 Client ID | |
| accountId | Yes | The ID of the account | |
| clientSecret | Yes | OAuth2 Client Secret | |
| refreshToken | Yes | OAuth2 Refresh Token | |
| tokenEndpoint | Yes | OAuth2 Token Endpoint URL | |
| confirmationId | No | Confirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode. |