Run a server command
run_commandRun Minecraft server commands via RCON and return the reply. Provide backup_area before commands that alter blocks so undo can restore the affected area.
Instructions
Runs any Minecraft server command through RCON and returns the reply, for example gamerule, time, weather, summon, give, op, reload, function, scoreboard, team, tp, data. Commands from mods and datapacks work too. Give backup_area to snapshot an area first so undo can put it back; otherwise this cannot be undone.
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": {
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | A server command without the leading slash, for example "time set day" | |
| dimension | No | Dimension to run the command in (and of backup_area). Default overworld. | overworld |
| backup_area | No | Area this command may change; it is saved first so undo can restore it |