complete_code_exchange
Exchange the OAuth authorization code for access tokens while validating the state parameter to prevent CSRF attacks.
Instructions
Complete PKCE OAuth authorization code exchange with state validation.
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>",
"state": "<state>"
},
"name": "complete_code_exchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The authorization code from OAuth callback | |
| state | Yes | The state parameter from OAuth callback |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |