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.
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. |