execute_luau
Run Luau code in Roblox Studio to test scripts and manipulate game state, returning execution results across Edit, PlayClient, or PlayServer contexts.
Instructions
Official Roblox MCP: Executes Luau code in Roblox Studio environment and returns evaluation results.
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_luau"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Luau source code to execute | |
| targetContext | No | Target execution context |