gws.accounts.add
Connect a new Google account via OAuth. Opens browser for consent and returns a pendingId to finalize later. Supports custom OAuth credentials for multiple organizations.
Instructions
Connect a new Google account via OAuth. Opens the browser and returns quickly with a pendingId — call gws.accounts.complete (poll it) to finalize once the user finishes the browser consent. Each account stores its own credentials. For accounts in different organizations, provide that org's clientId/clientSecret from their GCP project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | A short label for this account (e.g., 'work', 'personal', 'client-acme') | |
| clientId | No | OAuth Client ID for this account's GCP project. | |
| clientSecret | No | OAuth Client Secret for this account's GCP project. Stored securely in OS keychain. |