run_luau
Execute Luau code in the Roblox client and capture output along with serialized return values for debugging.
Instructions
Execute arbitrary Luau in the Roblox client and return captured output plus a best-effort serialized return value. Power tool.
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_luau"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |