execute_luau
Test and automate Luau scripts within Roblox Studio's sandboxed environment, with restrictions on HttpService, DataStoreService, and MessagingService.
Instructions
[PRO] Execute arbitrary Luau code in Roblox Studio sandbox. Blocked services: HttpService, DataStoreService, MessagingService. Cannot access CoreGui/CorePackages.
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": {
"source": "<source>"
},
"name": "execute_luau"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contextId | No | Optional execution context identifier. Used to continue an existing context for mutating actions. | |
| contextSummary | No | Optional structured execution context attached to this tool call. | |
| replayMetadata | No | Optional replay-ready metadata attached to this tool call. | |
| source | Yes | Luau source code to execute. The code runs in a sandboxed environment with access to game services (except blocked ones). Return values are serialized and sent back as the tool result. |