Run a console command
send_commandRuns a console command on a Minecraft server without a leading slash and returns the output printed during the specified wait period.
Instructions
Runs a command in the server console, without a leading slash (for example "say Hello", "lp user Steve parent set admin", "whitelist add Steve"), and returns the console output printed in the next wait_seconds. The server must be running.
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": "send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set. | |
| command | Yes | The console command, without a leading slash. | |
| wait_seconds | No | Seconds to collect output after sending. 0 sends without reading output. |