gmod_console_command
Executes a command in the Garry's Mod console on Windows by focusing the game window, opening the console, and pressing Enter. Use gmod_execute_rcon for server commands.
Instructions
[Windows only] [Experimental] Выполнить команду через консоль Garry's Mod. Фокусирует окно, открывает консоль (~), вводит команду, Enter, закрывает. ВАЖНО: может работать некорректно с русской раскладкой. Для серверных команд лучше использовать gmod_execute_rcon.
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": "gmod_console_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Консольная команда GMod. Примеры: 'connect 127.0.0.1:27015', 'disconnect', 'retry', 'map gm_flatgrass' |