mc_command
Executes whitelisted Minecraft server commands as a player for cases standard actions cannot handle, using a configurable command allowlist.
Instructions
以玩家身份执行服务器指令。白名单可配置(默认 tp/give/time/weather/say/gamemode/effect/setblock/fill/clone/summon/title/clear/xp)。要放行别的指令,在普通会话里用 mc_admin_config 改 commandWhitelist(MC 模式会话改不了)。
⚠️ 这是最后手段:正经动作优先 mc_act / mc_build / mc_move(那些不需要 OP)。
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": "mc_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | 以 / 开头的完整指令 |