exchange_code_for_tokens
Exchange an OAuth authorization code for access and refresh tokens to authenticate API requests.
Instructions
Exchange authorization code for access and refresh tokens
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": {
"code": "<code>",
"redirect_uri": "<redirect_uri>"
},
"name": "exchange_code_for_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The authorization code from OAuth callback | |
| redirect_uri | Yes | The redirect URI used in authorization |