setup_auth
Authorize a Google account or reauthorize an existing one for Gmail, Calendar, Docs, Sheets, and Drive access. Start without a code, then complete with the post-consent URL or code.
Instructions
Authorize the first Google account or reauthorize an existing one. Call without url_or_code to begin, then call again with the post-consent localhost URL/code to finish. Requests Gmail, Calendar, read/write Google Docs and Sheets, and read-only Google Drive access. Existing accounts must reauthorize to grant newly added scopes.
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": "setup_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Optional account to preselect and verify during authorization. | ||
| url_or_code | No | Omit to start auth and receive a consent URL. Pass the post-consent localhost URL (or just the `code` param) to complete auth. |