mc_key
Simulates real keyboard key presses in Minecraft using GLFW key names, letting AI assistants trigger in-game actions and navigate GUI screens.
Instructions
Press a key by GLFW name (escape, enter, tab, backspace, up/down/left/right, f1-f12, space, letters, digits...). Behaves like a real key press in-game and in screens.
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": {
"key": "<key>"
},
"name": "mc_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name, e.g. 'escape', 'e', 'f3' | |
| mods | No | GLFW modifier bitmask (shift=1, ctrl=2, alt=4) | |
| action | No | Default 'press' (down+up) |