complete_add_account
Finalize a pending email account addition by polling provider status; for Outlook after device-code entry, or for Gmail submit the full redirected URL with code and state to persist the account.
Instructions
Poll/finalize a pending add_account flow. For Outlook, poll after the user completes the device-code step. For Gmail, pass the full final redirected URL supplied by the user as authorizationResponse, with provider 'gmail' and the original handle; preserve all query parameters, including code and state. Polling without the URL only works if the server received the browser callback automatically. Returns ready when the account is persisted.
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>",
"handle": "<handle>"
},
"name": "complete_add_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | For OAuth providers such as Gmail: raw authorization code if the client extracted it from the redirect URL. | |
| state | No | For OAuth providers such as Gmail: OAuth state returned with a raw authorization code. | |
| handle | Yes | ||
| provider | Yes | ||
| authorizationResponse | No | For Gmail: the full final URL the user copies from the browser address bar after consent, including code and state, even if the callback page cannot load. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | Yes | ||
| account | No |