execute_lua
Run server-side Lua code in Roblox Studio to inspect or modify the game, optionally bypassing safety checks with force or targeting a specific connected client.
Instructions
Execute arbitrary Lua code in Studio (server-side). Use force=true to bypass safety.
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": "execute_lua"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Lua code to execute on the server | |
| force | No | Bypass safety checks (default false) | |
| client | No | Target a specific Studio client by name (as shown on the panel, e.g. "studio"). Omit to auto-pick: the only active client, or the most recently active one when several are connected. |