Restart or stop the server
restart_serverSchedule a Minecraft server restart or stop with chat countdown warnings, save all worlds and players, then disconnect everyone and shut down; cancel or check pending status.
Instructions
restart or stop after a countdown in chat: players see warnings at set marks, then every world and player is saved and the server shuts down. What runs the server decides what comes next: Docker's restart policy or a start script loop starts it again (and then a stop is a restart too); otherwise it stays off. One restart or stop is pending at a time, and scheduling replaces it; cancel calls it off, status tells whether one is pending. Needs server:control. Everyone online gets disconnected, so confirm with the user first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "restart_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | `status` reads the pending one | restart |
| message | No | Said with each warning, such as the reason | |
| countdownSeconds | No | 0 goes at once |