run_lua
Run arbitrary Lua code on a Garry's Mod server and retrieve the result. Requires explicit confirmation for security.
Instructions
GUARDED. Runs arbitrary Lua server-side (RunString) and returns the resulting value. Requires confirm:true. Audited.
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": {
"code": "<code>"
},
"name": "run_lua"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| confirm | No | Must be true: this is a sensitive, audited action. Otherwise the call is refused. |