gws.accounts.complete
Finalize a pending Google Workspace OAuth flow by providing the pendingId from add or reauth. Poll with waitSeconds (max 3) until status returns complete, or retry if pending.
Instructions
Finalize a pending OAuth flow started by gws.accounts.add or gws.accounts.reauth. Returns quickly; if the user has not yet completed sign-in, responds with status 'pending' and the caller should call again.
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": {
"pendingId": "<pendingId>"
},
"name": "gws.accounts.complete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pendingId | Yes | The pendingId returned by add/reauth | |
| waitSeconds | No | Max seconds to wait for completion on this call (default 3, max 3). Poll in short increments rather than holding a single call open. |