run_script
Execute Lua code within the Roblox client to automate tasks, modify game behavior, or test scripts directly in running game instances.
Instructions
Execute arbitrary Lua code in the Roblox client
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_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Lua code to execute |