oauth_v2_user_access
Exchange a temporary OAuth verifier code for a user access token. Supports authorization code, PKCE, and token refresh flows.
Instructions
Exchange a temporary OAuth verifier code for a user access token (V2).
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": {
"client_id": "<client_id>"
},
"name": "oauth_v2_user_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The OAuth callback code (omit when refreshing). | |
| client_id | Yes | Your app's client ID. | |
| grant_type | No | ``authorization_code`` (default) or ``refresh_token``. | |
| redirect_uri | No | Must match the value used to request the code. | |
| client_secret | No | Your app's client secret (omit for public PKCE clients). | |
| code_verifier | No | PKCE verifier matching the original challenge. | |
| refresh_token | No | The refresh token, when ``grant_type=refresh_token``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||