preview_app_authorization
Preview an OAuth2 authorization before adding a bot to a server; see the app, requested scopes, and eligible servers to confirm the install.
Instructions
Preview an OAuth2 authorization (e.g. adding a bot to a server): shows the app, scopes and servers you can add it to. [GET /oauth2/authorize]
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>",
"scope": "<scope>"
},
"name": "preview_app_authorization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Space-separated scopes, e.g. "bot applications.commands" | |
| state | No | state | |
| client_id | Yes | client id (ID) | |
| permissions | No | Permissions: bitfield string, or names like ["VIEW_CHANNEL","SEND_MESSAGES"] | |
| redirect_uri | No | redirect uri | |
| response_type | No | response type | |
| integration_type | No | 0 server install, 1 user install |