Run a console command
run_commandExecute any vanilla or plugin command from the server console and get its output. Optionally specify an online player to run the command as that player.
Instructions
Execute a vanilla or plugin command from the server console, without the leading slash (e.g. "say hello"). Returns the command output, possibly empty.
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 |
|---|---|---|---|
| player | No | Online player name (defaults to the first online player) | |
| command | Yes | Command without the leading / |