Leave server
leave_serverMake a Discord bot leave a named server after preview and confirmation, preventing accidental removal.
Instructions
Make the bot leave a server. It can only come back through a new invite from someone with Manage Server, and its own role there is deleted. Always previews first and asks for confirmation. The server must be named: this never falls back to the default one. When two of your bots are in the server, bot says which one leaves.
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": {
"guild": "<guild>"
},
"name": "leave_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Which bot to act as, by name, when more than one is configured. Omit to use the default bot, or with a server, the bot that handles it. | |
| guild | Yes | Server name or ID to leave. | |
| confirm_token | No | The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree. |