Exchange Google Health OAuth Code
google_health_exchange_codeExchange a Google OAuth authorization code for locally stored tokens with secure file permissions. Tokens remain on the machine and are never returned, so explicit user consent is required before calling.
Instructions
Exchange a Google OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned. Gated: requires explicit user intent — agents must not call this autonomously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | OAuth authorization code, or a full redirect URL containing ?code=... | |
| code_verifier | Yes | PKCE code verifier from google_health_get_auth_url. | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | Yes | ||
| scope | No | ||
| expires_at | No | ||
| token_path | Yes |