execute_lua
Run arbitrary Luau code in Roblox Studio and return the output. Leverages full API access from the plugin context; use 'return ' to capture results.
Instructions
Execute arbitrary Luau code in Roblox Studio and return the result. The code runs in the plugin context with full API access. Use "return " to get results back.
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 |
|---|---|---|---|
| args | No | Optional arguments passed as a table to the code (accessible as ...) | |
| code | Yes | Luau code to execute |