mc_execute_as_op
Executes Minecraft commands as an online operator. Automatically selects the sole online operator, or lets you specify one when multiple operators are online.
Instructions
Execute a command as an online operator. Automatically selects an online op if only one exists, otherwise requires specifying which op to use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Optional: specific operator name to execute as. If not provided, uses MC_DEFAULT_OP env var or auto-selects if only one op online. | |
| command | Yes | The command to execute (without leading slash) |