Get game rule
get_gameruleRetrieve the current value of a Minecraft game rule in the main world as a string, so agents can check settings like keep_inventory or mob_griefing before making changes.
Instructions
Current value of a game rule in the main world, as a string.
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": {
"rule": "<rule>"
},
"name": "get_gamerule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | Game rule such as 'keep_inventory' or 'mob_griefing' (legacy names like keepInventory work too). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||