complete_reddit_oauth
Exchange a Reddit authorization code for access and refresh tokens to complete OAuth2 authentication.
Instructions
Complete Reddit OAuth2 authentication (get tokens).
Args:
client_id: Reddit Client ID
client_secret: Reddit Client Secret
authorization_code: Authorization code from Reddit callback
redirect_uri: Optional redirect URI (should match the one used in setup_reddit_oauth)
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>",
"client_secret": "<client_secret>",
"authorization_code": "<authorization_code>"
},
"name": "complete_reddit_oauth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | Yes | ||
| redirect_uri | No | ||
| client_secret | Yes | ||
| authorization_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |