authorize_app
Authorize a Discord app via OAuth2 to add a bot to a server or install a user app, defining scopes, guild ID, permissions, and integration type.
Instructions
Authorize an app — e.g. add a bot to a server (scope "bot applications.commands", guild_id, permissions) or install a user app (integration_type 1). [POST /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": "authorize_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Space-separated scopes | |
| state | No | state | |
| guild_id | No | Server (guild) ID | |
| authorize | No | authorize | |
| client_id | Yes | client id (ID) | |
| dm_settings | No | dm settings | |
| 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 | integration type | |
| location_context | No | location context | |
| webhook_channel_id | No | webhook channel id (ID) |